helium-ruby 0.20.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +47 -0
  3. data/docs/Helium.html +6 -6
  4. data/docs/Helium/Client.html +62 -34
  5. data/docs/Helium/Client/Configurations.html +296 -0
  6. data/docs/Helium/Client/DeviceConfigurations.html +465 -0
  7. data/docs/Helium/Client/Elements.html +92 -18
  8. data/docs/Helium/Client/Http.html +86 -28
  9. data/docs/Helium/Client/Labels.html +29 -86
  10. data/docs/Helium/Client/Organizations.html +5 -75
  11. data/docs/Helium/Client/Sensors.html +147 -17
  12. data/docs/Helium/Client/Users.html +5 -9
  13. data/docs/Helium/ClientError.html +3 -3
  14. data/docs/Helium/Collection.html +1053 -0
  15. data/docs/Helium/Configuration.html +380 -0
  16. data/docs/Helium/Cursor.html +7 -3
  17. data/docs/Helium/DataPoint.html +16 -5
  18. data/docs/Helium/DeviceConfiguration.html +476 -0
  19. data/docs/Helium/Element.html +203 -43
  20. data/docs/Helium/Error.html +15 -5
  21. data/docs/Helium/InvalidApiKey.html +3 -3
  22. data/docs/Helium/Label.html +35 -36
  23. data/docs/Helium/Metadata.html +589 -0
  24. data/docs/Helium/Organization.html +236 -17
  25. data/docs/Helium/Resource.html +655 -161
  26. data/docs/Helium/Sensor.html +345 -111
  27. data/docs/Helium/Timeseries.html +354 -0
  28. data/docs/Helium/User.html +161 -18
  29. data/docs/Helium/Utils.html +56 -4
  30. data/docs/_index.html +72 -7
  31. data/docs/class_list.html +1 -1
  32. data/docs/css/style.css +8 -1
  33. data/docs/file.README.html +66 -6
  34. data/docs/frames.html +1 -1
  35. data/docs/index.html +66 -6
  36. data/docs/method_list.html +619 -139
  37. data/docs/top-level-namespace.html +3 -3
  38. data/lib/helium.rb +2 -0
  39. data/lib/helium/client/configurations.rb +0 -12
  40. data/lib/helium/client/elements.rb +0 -12
  41. data/lib/helium/client/labels.rb +1 -12
  42. data/lib/helium/client/organizations.rb +1 -47
  43. data/lib/helium/client/sensors.rb +0 -12
  44. data/lib/helium/client/users.rb +1 -3
  45. data/lib/helium/collection.rb +129 -0
  46. data/lib/helium/configuration.rb +5 -1
  47. data/lib/helium/element.rb +1 -1
  48. data/lib/helium/label.rb +1 -3
  49. data/lib/helium/metadata.rb +58 -0
  50. data/lib/helium/organization.rb +4 -4
  51. data/lib/helium/resource.rb +28 -29
  52. data/lib/helium/sensor.rb +1 -1
  53. data/lib/helium/version.rb +1 -1
  54. metadata +11 -2
@@ -20,7 +20,7 @@ module Helium
20
20
  end
21
21
 
22
22
  def labels
23
- @client.sensor_labels(self)
23
+ Collection.new(klass: Label, client: @client, belongs_to: self)
24
24
  end
25
25
 
26
26
  def device_configuration
@@ -1,3 +1,3 @@
1
1
  module Helium
2
- VERSION = "0.20.0"
2
+ VERSION = "0.21.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helium-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Allen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-12-06 00:00:00.000000000 Z
12
+ date: 2017-01-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: typhoeus
@@ -248,6 +248,8 @@ files:
248
248
  - bin/setup
249
249
  - docs/Helium.html
250
250
  - docs/Helium/Client.html
251
+ - docs/Helium/Client/Configurations.html
252
+ - docs/Helium/Client/DeviceConfigurations.html
251
253
  - docs/Helium/Client/Elements.html
252
254
  - docs/Helium/Client/Http.html
253
255
  - docs/Helium/Client/Labels.html
@@ -255,15 +257,20 @@ files:
255
257
  - docs/Helium/Client/Sensors.html
256
258
  - docs/Helium/Client/Users.html
257
259
  - docs/Helium/ClientError.html
260
+ - docs/Helium/Collection.html
261
+ - docs/Helium/Configuration.html
258
262
  - docs/Helium/Cursor.html
259
263
  - docs/Helium/DataPoint.html
264
+ - docs/Helium/DeviceConfiguration.html
260
265
  - docs/Helium/Element.html
261
266
  - docs/Helium/Error.html
262
267
  - docs/Helium/InvalidApiKey.html
263
268
  - docs/Helium/Label.html
269
+ - docs/Helium/Metadata.html
264
270
  - docs/Helium/Organization.html
265
271
  - docs/Helium/Resource.html
266
272
  - docs/Helium/Sensor.html
273
+ - docs/Helium/Timeseries.html
267
274
  - docs/Helium/User.html
268
275
  - docs/Helium/Utils.html
269
276
  - docs/_index.html
@@ -291,6 +298,7 @@ files:
291
298
  - lib/helium/client/organizations.rb
292
299
  - lib/helium/client/sensors.rb
293
300
  - lib/helium/client/users.rb
301
+ - lib/helium/collection.rb
294
302
  - lib/helium/configuration.rb
295
303
  - lib/helium/cursor.rb
296
304
  - lib/helium/data_point.rb
@@ -298,6 +306,7 @@ files:
298
306
  - lib/helium/element.rb
299
307
  - lib/helium/error.rb
300
308
  - lib/helium/label.rb
309
+ - lib/helium/metadata.rb
301
310
  - lib/helium/organization.rb
302
311
  - lib/helium/resource.rb
303
312
  - lib/helium/sensor.rb