Method: Expedition::Client#devices

Defined in:
lib/expedition/client.rb

#devicesResponse

Sends the devdetails command, returning an array of devices found in the service's response.

Returns:



38
39
40
41
42
43
44
45
46
# File 'lib/expedition/client.rb', line 38

def devices
  send(:devdetails) do |body|
    body[:devdetails].collect { |attrs|
      attrs.delete(:devdetails)
      attrs[:variant] = attrs.delete(:name).downcase
      attrs
    }
  end
end