Method: M2X::Client::Stream.list

Defined in:
lib/m2x/stream.rb

.list(client, device) ⇒ Object

Retrieve list of data streams associated with a device.

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



20
21
22
23
24
# File 'lib/m2x/stream.rb', line 20

def list(client, device)
  res = client.get("#{device.path}/streams")

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