Class: WurflDevice::RpcServer
- Inherits:
-
Object
- Object
- WurflDevice::RpcServer
- Defined in:
- lib/wurfl_device/rpc_server.rb
Instance Method Summary collapse
- #capabilities_from_id(device_id) {|capabilities| ... } ⇒ Object
- #capabilities_from_user_agent(user_agent) {|capabilities| ... } ⇒ Object
Instance Method Details
#capabilities_from_id(device_id) {|capabilities| ... } ⇒ Object
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
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 |