class Mobi::Mtld::Da::Device::Config

Copyright
Author

Attributes

include_lang_props[RW]

To check the Accept-Language header and include properties to the property set for getting client's language and locale preferences set to true. If you do not use this properties you can set this config to false to make the detection marginally faster.

include_match_info[RW]

To include the matched and unmatched parts of the User-Agent to the property set.

include_ua_props[RW]

To disable or enable DeviceApi.properties including User-Agent dynamic properties. Some properties cannot be known before runtime and can change from User-Agent to User-Agent. The most common of these are the OS Version and the Browser Version. The DeviceApi is able to dynamically detect these changing properties with a small overhead. If you do not use this properties you can set this config to false to make the detection a little bit faster.

return_nil_when_no_properties[RW]

The default config value for DeviceApi.properties when there are no properties. true = if we want to return nil when there are no properties, false = if we want to return an instance of Properties without Property in

Public Class Methods

new() click to toggle source