Class: WurflDevice::RpcServer

Inherits:
Object
  • Object
show all
Defined in:
lib/wurfl_device/rpc_server.rb

Instance Method Summary collapse

Instance Method Details

#capabilities_from_id(device_id) {|capabilities| ... } ⇒ Object

Yields:

  • (capabilities)


4
5
6
7
# File 'lib/wurfl_device/rpc_server.rb', line 4

def capabilities_from_id(device_id)
  capabilities = WurflDevice.capabilities_from_id(device_id)
  yield(capabilities)
end

#capabilities_from_user_agent(user_agent) {|capabilities| ... } ⇒ Object

Yields:

  • (capabilities)


9
10
11
12
# File 'lib/wurfl_device/rpc_server.rb', line 9

def capabilities_from_user_agent(user_agent)
  capabilities = WurflDevice.capabilities_from_user_agent(user_agent)
  yield(capabilities)
end