Class: PointClient::Client
- Inherits:
-
Object
- Object
- PointClient::Client
- Defined in:
- lib/point_client/client.rb
Instance Method Summary collapse
Instance Method Details
#avg(deviceId) ⇒ Object
9 10 11 12 |
# File 'lib/point_client/client.rb', line 9 def avg(deviceId) result = PointClient.jsonConnection.get "/draft1/devices/#{deviceId}/sound_avg_levels" convertValues result.body['values'] end |
#device(deviceId) ⇒ Object
5 6 7 |
# File 'lib/point_client/client.rb', line 5 def device(deviceId) PointClient.jsonConnection.get "/draft1/devices/#{deviceId}" end |
#peak(deviceId) ⇒ Object
14 15 16 17 |
# File 'lib/point_client/client.rb', line 14 def peak(deviceId) result = PointClient.jsonConnection.get "/draft1/devices/#{deviceId}/sound_peak_levels" convertValues result.body['values'] end |