class Mobi::Mtld::Da::Device::ControllerHelper::DeviceApiWeb

Copyright
Author

DeviceApiWeb is the class that lets us use user's headers transparently. We do not need to explicitly pass them as parameter to the properties() method.

Public Class Methods

new(headers, cookies, settings = nil) click to toggle source
Calls superclass method Mobi::Mtld::Da::Device::DeviceApi.new

Public Instance Methods

properties(user_agent_or_headers = nil, client_side_properties = nil) click to toggle source

Get known properties either transparently from the request or from the given User-Agent, headers or Client side properties.

user_agent_or_headers

User-Agent string or array of HTTP headers.

client_side_properties

String of client side properties with the

format the client side component provides.

return

Array of Property objects.

Calls superclass method