helium-ruby 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/README.md +3 -3
- data/docs/Helium.html +4 -4
- data/docs/Helium/Client.html +9 -9
- data/docs/Helium/Client/Elements.html +8 -110
- data/docs/Helium/Client/Http.html +31 -33
- data/docs/Helium/Client/Labels.html +38 -218
- data/docs/Helium/Client/Organizations.html +1 -1
- data/docs/Helium/Client/Sensors.html +30 -214
- data/docs/Helium/Client/Users.html +1 -1
- data/docs/Helium/ClientError.html +153 -0
- data/docs/Helium/Cursor.html +8 -8
- data/docs/Helium/DataPoint.html +9 -9
- data/docs/Helium/Element.html +16 -79
- data/docs/Helium/Error.html +267 -0
- data/docs/Helium/InvalidApiKey.html +157 -0
- data/docs/Helium/Label.html +29 -133
- data/docs/Helium/Organization.html +8 -8
- data/docs/Helium/Resource.html +717 -43
- data/docs/Helium/Sensor.html +31 -132
- data/docs/Helium/User.html +8 -8
- data/docs/Helium/Utils.html +1 -1
- data/docs/_index.html +33 -4
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +4 -4
- data/docs/index.html +4 -4
- data/docs/method_list.html +112 -144
- data/docs/top-level-namespace.html +1 -1
- data/lib/helium.rb +1 -0
- data/lib/helium/client.rb +3 -3
- data/lib/helium/client/elements.rb +10 -27
- data/lib/helium/client/http.rb +38 -19
- data/lib/helium/client/labels.rb +7 -53
- data/lib/helium/client/sensors.rb +5 -54
- data/lib/helium/cursor.rb +6 -6
- data/lib/helium/data_point.rb +5 -5
- data/lib/helium/element.rb +7 -8
- data/lib/helium/error.rb +28 -0
- data/lib/helium/label.rb +3 -11
- data/lib/helium/organization.rb +4 -4
- data/lib/helium/resource.rb +103 -5
- data/lib/helium/sensor.rb +13 -15
- data/lib/helium/user.rb +4 -4
- data/lib/helium/version.rb +1 -1
- metadata +6 -2
data/docs/Helium/Sensor.html
CHANGED
@@ -238,29 +238,7 @@
|
|
238
238
|
<li class="public ">
|
239
239
|
<span class="summary_signature">
|
240
240
|
|
241
|
-
<a href="#
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
</span>
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
256
|
-
|
257
|
-
</li>
|
258
|
-
|
259
|
-
|
260
|
-
<li class="public ">
|
261
|
-
<span class="summary_signature">
|
262
|
-
|
263
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(client:, params:) ⇒ Sensor </a>
|
241
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(opts = {}) ⇒ Sensor </a>
|
264
242
|
|
265
243
|
|
266
244
|
|
@@ -285,7 +263,7 @@
|
|
285
263
|
<li class="public ">
|
286
264
|
<span class="summary_signature">
|
287
265
|
|
288
|
-
<a href="#timeseries-instance_method" title="#timeseries (instance method)">#<strong>timeseries</strong>(
|
266
|
+
<a href="#timeseries-instance_method" title="#timeseries (instance method)">#<strong>timeseries</strong>(opts = {}) ⇒ Object </a>
|
289
267
|
|
290
268
|
|
291
269
|
|
@@ -301,29 +279,6 @@
|
|
301
279
|
|
302
280
|
<span class="summary_desc"><div class='inline'></div></span>
|
303
281
|
|
304
|
-
</li>
|
305
|
-
|
306
|
-
|
307
|
-
<li class="public ">
|
308
|
-
<span class="summary_signature">
|
309
|
-
|
310
|
-
<a href="#update-instance_method" title="#update (instance method)">#<strong>update</strong>(name:) ⇒ Object </a>
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
</span>
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
<span class="summary_desc"><div class='inline'><p>TODO CRUD methods will be generalized into the Resource object.</p>
|
325
|
-
</div></span>
|
326
|
-
|
327
282
|
</li>
|
328
283
|
|
329
284
|
|
@@ -340,14 +295,14 @@
|
|
340
295
|
|
341
296
|
|
342
297
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Resource.html" title="Helium::Resource (class)">Resource</a></span></h3>
|
343
|
-
<p class="inherited"><span class='object_link'><a href="Resource.html#%3D%3D-instance_method" title="Helium::Resource#== (method)">#==</a></span>, <span class='object_link'><a href="Resource.html#created_at-instance_method" title="Helium::Resource#created_at (method)">#created_at</a></span>, <span class='object_link'><a href="Resource.html#eql%3F-instance_method" title="Helium::Resource#eql? (method)">#eql?</a></span>, <span class='object_link'><a href="Resource.html#hash-instance_method" title="Helium::Resource#hash (method)">#hash</a></span>, <span class='object_link'><a href="Resource.html#to_json-instance_method" title="Helium::Resource#to_json (method)">#to_json</a></span>, <span class='object_link'><a href="Resource.html#updated_at-instance_method" title="Helium::Resource#updated_at (method)">#updated_at</a></span></p>
|
298
|
+
<p class="inherited"><span class='object_link'><a href="Resource.html#%3D%3D-instance_method" title="Helium::Resource#== (method)">#==</a></span>, <span class='object_link'><a href="Resource.html#all-class_method" title="Helium::Resource.all (method)">all</a></span>, <span class='object_link'><a href="Resource.html#create-class_method" title="Helium::Resource.create (method)">create</a></span>, <span class='object_link'><a href="Resource.html#created_at-instance_method" title="Helium::Resource#created_at (method)">#created_at</a></span>, <span class='object_link'><a href="Resource.html#destroy-instance_method" title="Helium::Resource#destroy (method)">#destroy</a></span>, <span class='object_link'><a href="Resource.html#eql%3F-instance_method" title="Helium::Resource#eql? (method)">#eql?</a></span>, <span class='object_link'><a href="Resource.html#find-class_method" title="Helium::Resource.find (method)">find</a></span>, <span class='object_link'><a href="Resource.html#hash-instance_method" title="Helium::Resource#hash (method)">#hash</a></span>, <span class='object_link'><a href="Resource.html#to_json-instance_method" title="Helium::Resource#to_json (method)">#to_json</a></span>, <span class='object_link'><a href="Resource.html#update-instance_method" title="Helium::Resource#update (method)">#update</a></span>, <span class='object_link'><a href="Resource.html#updated_at-instance_method" title="Helium::Resource#updated_at (method)">#updated_at</a></span></p>
|
344
299
|
<div id="constructor_details" class="method_details_list">
|
345
300
|
<h2>Constructor Details</h2>
|
346
301
|
|
347
302
|
<div class="method_details first">
|
348
303
|
<h3 class="signature first" id="initialize-instance_method">
|
349
304
|
|
350
|
-
#<strong>initialize</strong>(
|
305
|
+
#<strong>initialize</strong>(opts = {}) ⇒ <tt><span class='object_link'><a href="" title="Helium::Sensor (class)">Sensor</a></span></tt>
|
351
306
|
|
352
307
|
|
353
308
|
|
@@ -380,12 +335,12 @@
|
|
380
335
|
<td>
|
381
336
|
<pre class="code"><span class="info file"># File 'lib/helium/sensor.rb', line 5</span>
|
382
337
|
|
383
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='
|
384
|
-
<span class='kw'>super</span><span class='lparen'>(</span><span class='
|
338
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
339
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
385
340
|
|
386
|
-
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='
|
387
|
-
<span class='ivar'>@mac</span> <span class='op'>=</span> <span class='
|
388
|
-
<span class='ivar'>@ports</span> <span class='op'>=</span> <span class='
|
341
|
+
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='ivar'>@params</span><span class='period'>.</span><span class='id identifier rubyid_dig'>dig</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>attributes</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>name</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
342
|
+
<span class='ivar'>@mac</span> <span class='op'>=</span> <span class='ivar'>@params</span><span class='period'>.</span><span class='id identifier rubyid_dig'>dig</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>meta</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>mac</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
343
|
+
<span class='ivar'>@ports</span> <span class='op'>=</span> <span class='ivar'>@params</span><span class='period'>.</span><span class='id identifier rubyid_dig'>dig</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>meta</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ports</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
389
344
|
<span class='kw'>end</span></pre>
|
390
345
|
</td>
|
391
346
|
</tr>
|
@@ -555,16 +510,16 @@
|
|
555
510
|
<pre class="lines">
|
556
511
|
|
557
512
|
|
513
|
+
32
|
514
|
+
33
|
558
515
|
34
|
559
516
|
35
|
560
517
|
36
|
561
518
|
37
|
562
|
-
38
|
563
|
-
39
|
564
|
-
40</pre>
|
519
|
+
38</pre>
|
565
520
|
</td>
|
566
521
|
<td>
|
567
|
-
<pre class="code"><span class="info file"># File 'lib/helium/sensor.rb', line
|
522
|
+
<pre class="code"><span class="info file"># File 'lib/helium/sensor.rb', line 32</span>
|
568
523
|
|
569
524
|
<span class='kw'>def</span> <span class='id identifier rubyid_as_json'>as_json</span>
|
570
525
|
<span class='kw'>super</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='lbrace'>{</span>
|
@@ -576,42 +531,12 @@
|
|
576
531
|
</td>
|
577
532
|
</tr>
|
578
533
|
</table>
|
579
|
-
</div>
|
580
|
-
|
581
|
-
<div class="method_details ">
|
582
|
-
<h3 class="signature " id="destroy-instance_method">
|
583
|
-
|
584
|
-
#<strong>destroy</strong> ⇒ <tt>Object</tt>
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
</h3><table class="source_code">
|
591
|
-
<tr>
|
592
|
-
<td>
|
593
|
-
<pre class="lines">
|
594
|
-
|
595
|
-
|
596
|
-
29
|
597
|
-
30
|
598
|
-
31</pre>
|
599
|
-
</td>
|
600
|
-
<td>
|
601
|
-
<pre class="code"><span class="info file"># File 'lib/helium/sensor.rb', line 29</span>
|
602
|
-
|
603
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_destroy'>destroy</span>
|
604
|
-
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_delete_sensor'>delete_sensor</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
|
605
|
-
<span class='kw'>end</span></pre>
|
606
|
-
</td>
|
607
|
-
</tr>
|
608
|
-
</table>
|
609
534
|
</div>
|
610
535
|
|
611
536
|
<div class="method_details ">
|
612
537
|
<h3 class="signature " id="timeseries-instance_method">
|
613
538
|
|
614
|
-
#<strong>timeseries</strong>(
|
539
|
+
#<strong>timeseries</strong>(opts = {}) ⇒ <tt>Object</tt>
|
615
540
|
|
616
541
|
|
617
542
|
|
@@ -632,12 +557,26 @@
|
|
632
557
|
19
|
633
558
|
20
|
634
559
|
21
|
635
|
-
22
|
560
|
+
22
|
561
|
+
23
|
562
|
+
24
|
563
|
+
25
|
564
|
+
26
|
565
|
+
27
|
566
|
+
28
|
567
|
+
29</pre>
|
636
568
|
</td>
|
637
569
|
<td>
|
638
570
|
<pre class="code"><span class="info file"># File 'lib/helium/sensor.rb', line 13</span>
|
639
571
|
|
640
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_timeseries'>timeseries</span><span class='lparen'>(</span><span class='
|
572
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_timeseries'>timeseries</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
573
|
+
<span class='id identifier rubyid_size'>size</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:size</span><span class='comma'>,</span> <span class='int'>1000</span><span class='rparen'>)</span>
|
574
|
+
<span class='id identifier rubyid_port'>port</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:port</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
575
|
+
<span class='id identifier rubyid_start_time'>start_time</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:start_time</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
576
|
+
<span class='id identifier rubyid_end_time'>end_time</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:end_time</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
577
|
+
<span class='id identifier rubyid_aggtype'>aggtype</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:aggtype</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
578
|
+
<span class='id identifier rubyid_aggsize'>aggsize</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:aggsize</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
579
|
+
|
641
580
|
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_sensor_timeseries'>sensor_timeseries</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span>
|
642
581
|
<span class='label'>size:</span> <span class='id identifier rubyid_size'>size</span><span class='comma'>,</span>
|
643
582
|
<span class='label'>port:</span> <span class='id identifier rubyid_port'>port</span><span class='comma'>,</span>
|
@@ -650,46 +589,6 @@
|
|
650
589
|
</td>
|
651
590
|
</tr>
|
652
591
|
</table>
|
653
|
-
</div>
|
654
|
-
|
655
|
-
<div class="method_details ">
|
656
|
-
<h3 class="signature " id="update-instance_method">
|
657
|
-
|
658
|
-
#<strong>update</strong>(name:) ⇒ <tt>Object</tt>
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
</h3><div class="docstring">
|
665
|
-
<div class="discussion">
|
666
|
-
<p>TODO CRUD methods will be generalized into the Resource object</p>
|
667
|
-
|
668
|
-
|
669
|
-
</div>
|
670
|
-
</div>
|
671
|
-
<div class="tags">
|
672
|
-
|
673
|
-
|
674
|
-
</div><table class="source_code">
|
675
|
-
<tr>
|
676
|
-
<td>
|
677
|
-
<pre class="lines">
|
678
|
-
|
679
|
-
|
680
|
-
25
|
681
|
-
26
|
682
|
-
27</pre>
|
683
|
-
</td>
|
684
|
-
<td>
|
685
|
-
<pre class="code"><span class="info file"># File 'lib/helium/sensor.rb', line 25</span>
|
686
|
-
|
687
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span><span class='label'>name:</span><span class='rparen'>)</span>
|
688
|
-
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_update_sensor'>update_sensor</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='label'>name:</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
689
|
-
<span class='kw'>end</span></pre>
|
690
|
-
</td>
|
691
|
-
</tr>
|
692
|
-
</table>
|
693
592
|
</div>
|
694
593
|
|
695
594
|
</div>
|
@@ -697,7 +596,7 @@
|
|
697
596
|
</div>
|
698
597
|
|
699
598
|
<div id="footer">
|
700
|
-
Generated on
|
599
|
+
Generated on Wed Aug 24 13:22:51 2016 by
|
701
600
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
702
601
|
0.9.3 (ruby-2.3.1).
|
703
602
|
</div>
|
data/docs/Helium/User.html
CHANGED
@@ -210,7 +210,7 @@
|
|
210
210
|
<li class="public ">
|
211
211
|
<span class="summary_signature">
|
212
212
|
|
213
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(
|
213
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(opts = {}) ⇒ User </a>
|
214
214
|
|
215
215
|
|
216
216
|
|
@@ -245,14 +245,14 @@
|
|
245
245
|
|
246
246
|
|
247
247
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Resource.html" title="Helium::Resource (class)">Resource</a></span></h3>
|
248
|
-
<p class="inherited"><span class='object_link'><a href="Resource.html#%3D%3D-instance_method" title="Helium::Resource#== (method)">#==</a></span>, <span class='object_link'><a href="Resource.html#created_at-instance_method" title="Helium::Resource#created_at (method)">#created_at</a></span>, <span class='object_link'><a href="Resource.html#eql%3F-instance_method" title="Helium::Resource#eql? (method)">#eql?</a></span>, <span class='object_link'><a href="Resource.html#hash-instance_method" title="Helium::Resource#hash (method)">#hash</a></span>, <span class='object_link'><a href="Resource.html#to_json-instance_method" title="Helium::Resource#to_json (method)">#to_json</a></span>, <span class='object_link'><a href="Resource.html#updated_at-instance_method" title="Helium::Resource#updated_at (method)">#updated_at</a></span></p>
|
248
|
+
<p class="inherited"><span class='object_link'><a href="Resource.html#%3D%3D-instance_method" title="Helium::Resource#== (method)">#==</a></span>, <span class='object_link'><a href="Resource.html#all-class_method" title="Helium::Resource.all (method)">all</a></span>, <span class='object_link'><a href="Resource.html#create-class_method" title="Helium::Resource.create (method)">create</a></span>, <span class='object_link'><a href="Resource.html#created_at-instance_method" title="Helium::Resource#created_at (method)">#created_at</a></span>, <span class='object_link'><a href="Resource.html#destroy-instance_method" title="Helium::Resource#destroy (method)">#destroy</a></span>, <span class='object_link'><a href="Resource.html#eql%3F-instance_method" title="Helium::Resource#eql? (method)">#eql?</a></span>, <span class='object_link'><a href="Resource.html#find-class_method" title="Helium::Resource.find (method)">find</a></span>, <span class='object_link'><a href="Resource.html#hash-instance_method" title="Helium::Resource#hash (method)">#hash</a></span>, <span class='object_link'><a href="Resource.html#to_json-instance_method" title="Helium::Resource#to_json (method)">#to_json</a></span>, <span class='object_link'><a href="Resource.html#update-instance_method" title="Helium::Resource#update (method)">#update</a></span>, <span class='object_link'><a href="Resource.html#updated_at-instance_method" title="Helium::Resource#updated_at (method)">#updated_at</a></span></p>
|
249
249
|
<div id="constructor_details" class="method_details_list">
|
250
250
|
<h2>Constructor Details</h2>
|
251
251
|
|
252
252
|
<div class="method_details first">
|
253
253
|
<h3 class="signature first" id="initialize-instance_method">
|
254
254
|
|
255
|
-
#<strong>initialize</strong>(
|
255
|
+
#<strong>initialize</strong>(opts = {}) ⇒ <tt><span class='object_link'><a href="" title="Helium::User (class)">User</a></span></tt>
|
256
256
|
|
257
257
|
|
258
258
|
|
@@ -284,11 +284,11 @@
|
|
284
284
|
<td>
|
285
285
|
<pre class="code"><span class="info file"># File 'lib/helium/user.rb', line 5</span>
|
286
286
|
|
287
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='
|
288
|
-
<span class='kw'>super</span><span class='lparen'>(</span><span class='
|
287
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
288
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
289
289
|
|
290
|
-
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='
|
291
|
-
<span class='ivar'>@email</span> <span class='op'>=</span> <span class='
|
290
|
+
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='ivar'>@params</span><span class='period'>.</span><span class='id identifier rubyid_dig'>dig</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>attributes</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>name</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
291
|
+
<span class='ivar'>@email</span> <span class='op'>=</span> <span class='ivar'>@params</span><span class='period'>.</span><span class='id identifier rubyid_dig'>dig</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>meta</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>email</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
292
292
|
<span class='kw'>end</span></pre>
|
293
293
|
</td>
|
294
294
|
</tr>
|
@@ -442,7 +442,7 @@
|
|
442
442
|
</div>
|
443
443
|
|
444
444
|
<div id="footer">
|
445
|
-
Generated on
|
445
|
+
Generated on Wed Aug 24 13:22:51 2016 by
|
446
446
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
447
447
|
0.9.3 (ruby-2.3.1).
|
448
448
|
</div>
|
data/docs/Helium/Utils.html
CHANGED
@@ -173,7 +173,7 @@
|
|
173
173
|
</div>
|
174
174
|
|
175
175
|
<div id="footer">
|
176
|
-
Generated on
|
176
|
+
Generated on Wed Aug 24 13:22:50 2016 by
|
177
177
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
178
178
|
0.9.3 (ruby-2.3.1).
|
179
179
|
</div>
|
data/docs/_index.html
CHANGED
@@ -89,6 +89,13 @@
|
|
89
89
|
|
90
90
|
</li>
|
91
91
|
|
92
|
+
<li>
|
93
|
+
<span class='object_link'><a href="Helium/ClientError.html" title="Helium::ClientError (class)">ClientError</a></span>
|
94
|
+
|
95
|
+
<small>(Helium)</small>
|
96
|
+
|
97
|
+
</li>
|
98
|
+
|
92
99
|
<li>
|
93
100
|
<span class='object_link'><a href="Helium/Cursor.html" title="Helium::Cursor (class)">Cursor</a></span>
|
94
101
|
|
@@ -133,6 +140,13 @@
|
|
133
140
|
|
134
141
|
</li>
|
135
142
|
|
143
|
+
<li>
|
144
|
+
<span class='object_link'><a href="Helium/Error.html" title="Helium::Error (class)">Error</a></span>
|
145
|
+
|
146
|
+
<small>(Helium)</small>
|
147
|
+
|
148
|
+
</li>
|
149
|
+
|
136
150
|
</ul>
|
137
151
|
</ul>
|
138
152
|
|
@@ -157,6 +171,21 @@
|
|
157
171
|
</ul>
|
158
172
|
|
159
173
|
|
174
|
+
<ul id="alpha_I" class="alpha">
|
175
|
+
<li class="letter">I</li>
|
176
|
+
<ul>
|
177
|
+
|
178
|
+
<li>
|
179
|
+
<span class='object_link'><a href="Helium/InvalidApiKey.html" title="Helium::InvalidApiKey (class)">InvalidApiKey</a></span>
|
180
|
+
|
181
|
+
<small>(Helium)</small>
|
182
|
+
|
183
|
+
</li>
|
184
|
+
|
185
|
+
</ul>
|
186
|
+
</ul>
|
187
|
+
|
188
|
+
|
160
189
|
<ul id="alpha_L" class="alpha">
|
161
190
|
<li class="letter">L</li>
|
162
191
|
<ul>
|
@@ -201,6 +230,9 @@
|
|
201
230
|
</ul>
|
202
231
|
|
203
232
|
|
233
|
+
</td><td valign='top' width="33%">
|
234
|
+
|
235
|
+
|
204
236
|
<ul id="alpha_R" class="alpha">
|
205
237
|
<li class="letter">R</li>
|
206
238
|
<ul>
|
@@ -216,9 +248,6 @@
|
|
216
248
|
</ul>
|
217
249
|
|
218
250
|
|
219
|
-
</td><td valign='top' width="33%">
|
220
|
-
|
221
|
-
|
222
251
|
<ul id="alpha_S" class="alpha">
|
223
252
|
<li class="letter">S</li>
|
224
253
|
<ul>
|
@@ -278,7 +307,7 @@
|
|
278
307
|
</div>
|
279
308
|
|
280
309
|
<div id="footer">
|
281
|
-
Generated on
|
310
|
+
Generated on Wed Aug 24 13:22:50 2016 by
|
282
311
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
283
312
|
0.9.3 (ruby-2.3.1).
|
284
313
|
</div>
|
data/docs/class_list.html
CHANGED
@@ -43,7 +43,7 @@
|
|
43
43
|
|
44
44
|
<ul id="full_list" class="class">
|
45
45
|
<li id="object_" class="odd"><div class="item" style="padding-left:30px"><span class='object_link'><a href="top-level-namespace.html" title="Top Level Namespace (root)">Top Level Namespace</a></span></div></li>
|
46
|
-
<li id='object_Helium' class='even'><div class='item' style='padding-left:30px'><a class='toggle'></a> <span class='object_link'><a href="Helium.html" title="Helium (module)">Helium</a></span><small class='search_info'>Top Level Namespace</small></div><ul><li id='object_Helium::Client' class='collapsed odd'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="Helium/Client.html" title="Helium::Client (class)">Client</a></span> < Object<small class='search_info'>Helium</small></div><ul><li id='object_Helium::Client::Elements' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Helium/Client/Elements.html" title="Helium::Client::Elements (module)">Elements</a></span><small class='search_info'>Helium::Client</small></div></li><li id='object_Helium::Client::Http' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Helium/Client/Http.html" title="Helium::Client::Http (module)">Http</a></span><small class='search_info'>Helium::Client</small></div></li><li id='object_Helium::Client::Labels' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Helium/Client/Labels.html" title="Helium::Client::Labels (module)">Labels</a></span><small class='search_info'>Helium::Client</small></div></li><li id='object_Helium::Client::Organizations' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Helium/Client/Organizations.html" title="Helium::Client::Organizations (module)">Organizations</a></span><small class='search_info'>Helium::Client</small></div></li><li id='object_Helium::Client::Sensors' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Helium/Client/Sensors.html" title="Helium::Client::Sensors (module)">Sensors</a></span><small class='search_info'>Helium::Client</small></div></li><li id='object_Helium::Client::Users' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Helium/Client/Users.html" title="Helium::Client::Users (module)">Users</a></span><small class='search_info'>Helium::Client</small></div></li></ul></li><li id='object_Helium::
|
46
|
+
<li id='object_Helium' class='even'><div class='item' style='padding-left:30px'><a class='toggle'></a> <span class='object_link'><a href="Helium.html" title="Helium (module)">Helium</a></span><small class='search_info'>Top Level Namespace</small></div><ul><li id='object_Helium::Client' class='collapsed odd'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="Helium/Client.html" title="Helium::Client (class)">Client</a></span> < Object<small class='search_info'>Helium</small></div><ul><li id='object_Helium::Client::Elements' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Helium/Client/Elements.html" title="Helium::Client::Elements (module)">Elements</a></span><small class='search_info'>Helium::Client</small></div></li><li id='object_Helium::Client::Http' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Helium/Client/Http.html" title="Helium::Client::Http (module)">Http</a></span><small class='search_info'>Helium::Client</small></div></li><li id='object_Helium::Client::Labels' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Helium/Client/Labels.html" title="Helium::Client::Labels (module)">Labels</a></span><small class='search_info'>Helium::Client</small></div></li><li id='object_Helium::Client::Organizations' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Helium/Client/Organizations.html" title="Helium::Client::Organizations (module)">Organizations</a></span><small class='search_info'>Helium::Client</small></div></li><li id='object_Helium::Client::Sensors' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Helium/Client/Sensors.html" title="Helium::Client::Sensors (module)">Sensors</a></span><small class='search_info'>Helium::Client</small></div></li><li id='object_Helium::Client::Users' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Helium/Client/Users.html" title="Helium::Client::Users (module)">Users</a></span><small class='search_info'>Helium::Client</small></div></li></ul></li><li id='object_Helium::ClientError' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Helium/ClientError.html" title="Helium::ClientError (class)">ClientError</a></span> < Error<small class='search_info'>Helium</small></div></li><li id='object_Helium::Cursor' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Helium/Cursor.html" title="Helium::Cursor (class)">Cursor</a></span> < Object<small class='search_info'>Helium</small></div></li><li id='object_Helium::DataPoint' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Helium/DataPoint.html" title="Helium::DataPoint (class)">DataPoint</a></span> < Resource<small class='search_info'>Helium</small></div></li><li id='object_Helium::Element' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Helium/Element.html" title="Helium::Element (class)">Element</a></span> < Resource<small class='search_info'>Helium</small></div></li><li id='object_Helium::Error' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Helium/Error.html" title="Helium::Error (class)">Error</a></span> < StandardError<small class='search_info'>Helium</small></div></li><li id='object_Helium::InvalidApiKey' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Helium/InvalidApiKey.html" title="Helium::InvalidApiKey (class)">InvalidApiKey</a></span> < ClientError<small class='search_info'>Helium</small></div></li><li id='object_Helium::Label' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Helium/Label.html" title="Helium::Label (class)">Label</a></span> < Resource<small class='search_info'>Helium</small></div></li><li id='object_Helium::Organization' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Helium/Organization.html" title="Helium::Organization (class)">Organization</a></span> < Resource<small class='search_info'>Helium</small></div></li><li id='object_Helium::Resource' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Helium/Resource.html" title="Helium::Resource (class)">Resource</a></span> < Object<small class='search_info'>Helium</small></div></li><li id='object_Helium::Sensor' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Helium/Sensor.html" title="Helium::Sensor (class)">Sensor</a></span> < Resource<small class='search_info'>Helium</small></div></li><li id='object_Helium::User' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Helium/User.html" title="Helium::User (class)">User</a></span> < Resource<small class='search_info'>Helium</small></div></li><li id='object_Helium::Utils' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Helium/Utils.html" title="Helium::Utils (module)">Utils</a></span><small class='search_info'>Helium</small></div></li></ul></li>
|
47
47
|
|
48
48
|
</ul>
|
49
49
|
</div>
|
data/docs/file.README.html
CHANGED
@@ -72,7 +72,7 @@
|
|
72
72
|
|
73
73
|
<p>Add this line to your application's Gemfile:</p>
|
74
74
|
|
75
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>helium-ruby</span><span class='tstring_end'>'</span></span>
|
75
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>helium-ruby</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>require:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>helium</span><span class='tstring_end'>'</span></span>
|
76
76
|
</code></pre>
|
77
77
|
|
78
78
|
<p>And then execute:</p>
|
@@ -133,7 +133,7 @@
|
|
133
133
|
|
134
134
|
<h4>Create a Virtual Sensor</h4>
|
135
135
|
|
136
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_sensor'>sensor</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier
|
136
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_sensor'>sensor</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_create_sensor'>create_sensor</span><span class='lparen'>(</span><span class='label'>name:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>A New Sensor</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
137
137
|
<span class='comment'># => #<Helium::Sensor:0x007f89acdb1b58 @id="08bab58b-d095-4c7c-912c-1f8024d91d95", @name="A New Sensor", @mac="6081f9fffe00019b", @ports=["t", "b"], @created_at="2015-08-06T17:28:11.614107Z", @updated_at="2016-05-30T22:36:50.810716Z">
|
138
138
|
</span></code></pre>
|
139
139
|
|
@@ -255,7 +255,7 @@
|
|
255
255
|
|
256
256
|
<h4>Create a Label</h4>
|
257
257
|
|
258
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier
|
258
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_create_label'>create_label</span><span class='lparen'>(</span><span class='label'>name:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>A New Label</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
259
259
|
<span class='comment'># => #<Helium::Label:0x007ffd80f2be28 @id="409d9394-60d5-436a-b8cb-7160d466fc5a", @name="A New Label", @created_at="2016-08-22T18:58:34.415862Z", @updated_at="2016-08-22T18:58:34.415862Z">
|
260
260
|
</span></code></pre>
|
261
261
|
|
@@ -362,7 +362,7 @@
|
|
362
362
|
</div></div>
|
363
363
|
|
364
364
|
<div id="footer">
|
365
|
-
Generated on
|
365
|
+
Generated on Wed Aug 24 13:22:50 2016 by
|
366
366
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
367
367
|
0.9.3 (ruby-2.3.1).
|
368
368
|
</div>
|
data/docs/index.html
CHANGED
@@ -72,7 +72,7 @@
|
|
72
72
|
|
73
73
|
<p>Add this line to your application's Gemfile:</p>
|
74
74
|
|
75
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>helium-ruby</span><span class='tstring_end'>'</span></span>
|
75
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>helium-ruby</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>require:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>helium</span><span class='tstring_end'>'</span></span>
|
76
76
|
</code></pre>
|
77
77
|
|
78
78
|
<p>And then execute:</p>
|
@@ -133,7 +133,7 @@
|
|
133
133
|
|
134
134
|
<h4>Create a Virtual Sensor</h4>
|
135
135
|
|
136
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_sensor'>sensor</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier
|
136
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_sensor'>sensor</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_create_sensor'>create_sensor</span><span class='lparen'>(</span><span class='label'>name:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>A New Sensor</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
137
137
|
<span class='comment'># => #<Helium::Sensor:0x007f89acdb1b58 @id="08bab58b-d095-4c7c-912c-1f8024d91d95", @name="A New Sensor", @mac="6081f9fffe00019b", @ports=["t", "b"], @created_at="2015-08-06T17:28:11.614107Z", @updated_at="2016-05-30T22:36:50.810716Z">
|
138
138
|
</span></code></pre>
|
139
139
|
|
@@ -255,7 +255,7 @@
|
|
255
255
|
|
256
256
|
<h4>Create a Label</h4>
|
257
257
|
|
258
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier
|
258
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_create_label'>create_label</span><span class='lparen'>(</span><span class='label'>name:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>A New Label</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
259
259
|
<span class='comment'># => #<Helium::Label:0x007ffd80f2be28 @id="409d9394-60d5-436a-b8cb-7160d466fc5a", @name="A New Label", @created_at="2016-08-22T18:58:34.415862Z", @updated_at="2016-08-22T18:58:34.415862Z">
|
260
260
|
</span></code></pre>
|
261
261
|
|
@@ -362,7 +362,7 @@
|
|
362
362
|
</div></div>
|
363
363
|
|
364
364
|
<div id="footer">
|
365
|
-
Generated on
|
365
|
+
Generated on Wed Aug 24 13:22:50 2016 by
|
366
366
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
367
367
|
0.9.3 (ruby-2.3.1).
|
368
368
|
</div>
|