Method: TenHsServer::Device.find

Defined in:
lib/ten_hs_server/device.rb

.find(id) ⇒ Object

Load a single device.

id - An string describing the device

Returns a hash describing the device.



106
107
108
109
110
111
# File 'lib/ten_hs_server/device.rb', line 106

def find id
  id = URI::encode(id)
  response = get "?t=99&f=GetDevice&d=#{id}"

  parse_device response.body
end