Method: M2X::Client::Device.list

Defined in:
lib/m2x/device.rb

.list(client, params = {}) ⇒ Object

Retrieve the list of devices accessible by the authenticated API key

m2x.att.com/developer/documentation/v2/device#List-Devices



15
16
17
18
19
# File 'lib/m2x/device.rb', line 15

def list(client, params={})
  res = client.get(PATH, params)

  res.json["devices"].map{ |atts| new(client, atts) } if res.success?
end