class Mobi::Mtld::Da::Device::ClientProps

Copyright
Author

Constants

KEY_CP_RULES

Constants to make keys more readable

KEY_USER_AGENT

Public Class Methods

new(tree) click to toggle source
Calls superclass method

Public Instance Methods

parse_client_side_properties(client_side_properties) click to toggle source

Parse the client side properties and if typed values is set convert the values to the appropriate type.

prop_str

Cookie content with the form:

bjs.webGl:1|sdeviceAspectRatio:16/10|iusableDisplayHeight:1050

The first character of the property name is the type of the value.

put_properties(client_side_properties) click to toggle source

Put Client Side properties into the property set.

client_side_properties

Cookie content with the following format:

bjs.webGl:1|sdeviceAspectRatio:16/10|iusableDisplayHeight:1050

The first character of the property name is the type of the value.

Protected Instance Methods

init_get_matcher_propery_ids(group, prop_ids) click to toggle source

Find all the properties that are used for matching.

group

The rule group that can contain a property matcher.

prop_ids

The set of found property IDs.

return

An updated set of property IDs.

init_rule_sets(group) click to toggle source

Prepare the rule set by extracting it from the current group and wrapping it in an Array.

group

The current parent group.

return

A list of all rule sets.