docs/Helium/Element.html in helium-ruby-0.25.0 vs docs/Helium/Element.html in helium-ruby-0.26.0

- old
+ new

@@ -111,10 +111,38 @@ <ul class="summary"> <li class="public "> <span class="summary_signature"> + <a href="#device_type-instance_method" title="#device_type (instance method)">#<strong>device_type</strong> &#x21d2; Object </a> + + + + </span> + + + + + <span class="note title readonly">readonly</span> + + + + + + + + + + <span class="summary_desc"><div class='inline'><p>Returns the value of attribute device_type.</p> +</div></span> + +</li> + + + <li class="public "> + <span class="summary_signature"> + <a href="#last_seen-instance_method" title="#last_seen (instance method)">#<strong>last_seen</strong> &#x21d2; DateTime<sup>?</sup> </a> </span> @@ -204,19 +232,72 @@ <p class="inherited"><span class='object_link'><a href="Resource.html#id-instance_method" title="Helium::Resource#id (method)">#id</a></span>, <span class='object_link'><a href="Resource.html#params-instance_method" title="Helium::Resource#params (method)">#params</a></span>, <span class='object_link'><a href="Resource.html#type-instance_method" title="Helium::Resource#type (method)">#type</a></span></p> <h2> + Class Method Summary + <small><a href="#" class="summary_toggle">collapse</a></small> + </h2> + + <ul class="summary"> + + <li class="public "> + <span class="summary_signature"> + + <a href="#all_path-class_method" title="all_path (class method)">.<strong>all_path</strong> &#x21d2; Object </a> + + + + </span> + + + + + + + + + + <span class="summary_desc"><div class='inline'></div></span> + +</li> + + + </ul> + + <h2> Instance Method Summary <small><a href="#" class="summary_toggle">collapse</a></small> </h2> <ul class="summary"> <li class="public "> <span class="summary_signature"> + <a href="#add_labels-instance_method" title="#add_labels (instance method)">#<strong>add_labels</strong>(labels_to_add = []) &#x21d2; Object </a> + + + + </span> + + + + + + + + + + <span class="summary_desc"><div class='inline'></div></span> + +</li> + + + <li class="public "> + <span class="summary_signature"> + <a href="#as_json-instance_method" title="#as_json (instance method)">#<strong>as_json</strong> &#x21d2; Object </a> </span> @@ -283,10 +364,76 @@ <li class="public "> <span class="summary_signature"> + <a href="#labels-instance_method" title="#labels (instance method)">#<strong>labels</strong> &#x21d2; Object </a> + + + + </span> + + + + + + + + + + <span class="summary_desc"><div class='inline'></div></span> + +</li> + + + <li class="public "> + <span class="summary_signature"> + + <a href="#remove_labels-instance_method" title="#remove_labels (instance method)">#<strong>remove_labels</strong>(labels_to_remove = []) &#x21d2; Object </a> + + + + </span> + + + + + + + + + + <span class="summary_desc"><div class='inline'></div></span> + +</li> + + + <li class="public "> + <span class="summary_signature"> + + <a href="#replace_labels-instance_method" title="#replace_labels (instance method)">#<strong>replace_labels</strong>(labels_to_replace = []) &#x21d2; Object </a> + + + + </span> + + + + + + + + + + <span class="summary_desc"><div class='inline'></div></span> + +</li> + + + <li class="public "> + <span class="summary_signature"> + <a href="#sensors-instance_method" title="#sensors (instance method)">#<strong>sensors</strong> &#x21d2; Object </a> </span> @@ -337,11 +484,11 @@ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Resource.html" title="Helium::Resource (class)">Resource</a></span></h3> - <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#all_path-class_method" title="Helium::Resource.all_path (method)">all_path</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#initialize_from_path-class_method" title="Helium::Resource.initialize_from_path (method)">initialize_from_path</a></span>, <span class='object_link'><a href="Resource.html#metadata-instance_method" title="Helium::Resource#metadata (method)">#metadata</a></span>, <span class='object_link'><a href="Resource.html#resource_name-class_method" title="Helium::Resource.resource_name (method)">resource_name</a></span>, <span class='object_link'><a href="Resource.html#resource_name-instance_method" title="Helium::Resource#resource_name (method)">#resource_name</a></span>, <span class='object_link'><a href="Resource.html#resource_path-instance_method" title="Helium::Resource#resource_path (method)">#resource_path</a></span>, <span class='object_link'><a href="Resource.html#singleton-class_method" title="Helium::Resource.singleton (method)">singleton</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> + <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#initialize_from_path-class_method" title="Helium::Resource.initialize_from_path (method)">initialize_from_path</a></span>, <span class='object_link'><a href="Resource.html#metadata-instance_method" title="Helium::Resource#metadata (method)">#metadata</a></span>, <span class='object_link'><a href="Resource.html#resource_name-class_method" title="Helium::Resource.resource_name (method)">resource_name</a></span>, <span class='object_link'><a href="Resource.html#resource_name-instance_method" title="Helium::Resource#resource_name (method)">#resource_name</a></span>, <span class='object_link'><a href="Resource.html#resource_path-instance_method" title="Helium::Resource#resource_path (method)">#resource_path</a></span>, <span class='object_link'><a href="Resource.html#singleton-class_method" title="Helium::Resource.singleton (method)">singleton</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> @@ -383,21 +530,23 @@ 6 7 8 9 10 -11</pre> +11 +12</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/helium/element.rb', line 5</span> <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> <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span> - <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'>&quot;</span><span class='tstring_content'>attributes</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>name</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> - <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'>&quot;</span><span class='tstring_content'>meta</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>mac</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> - <span class='ivar'>@last_seen</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'>&#39;</span><span class='tstring_content'>meta</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>last-seen</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> + <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'>&quot;</span><span class='tstring_content'>attributes</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>name</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> + <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'>&quot;</span><span class='tstring_content'>meta</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>mac</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> + <span class='ivar'>@last_seen</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'>&#39;</span><span class='tstring_content'>meta</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>last-seen</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> + <span class='ivar'>@device_type</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'>&#39;</span><span class='tstring_content'>meta</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>device-type</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -408,12 +557,54 @@ <h2>Instance Attribute Details</h2> <span id=""></span> <div class="method_details first"> - <h3 class="signature first" id="last_seen-instance_method"> + <h3 class="signature first" id="device_type-instance_method"> + #<strong>device_type</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span> + + + + + +</h3><div class="docstring"> + <div class="discussion"> + <p>Returns the value of attribute device_type</p> + + + </div> +</div> +<div class="tags"> + + +</div><table class="source_code"> + <tr> + <td> + <pre class="lines"> + + +3 +4 +5</pre> + </td> + <td> + <pre class="code"><span class="info file"># File 'lib/helium/element.rb', line 3</span> + +<span class='kw'>def</span> <span class='id identifier rubyid_device_type'>device_type</span> + <span class='ivar'>@device_type</span> +<span class='kw'>end</span></pre> + </td> + </tr> +</table> +</div> + + + <span id=""></span> + <div class="method_details "> + <h3 class="signature " id="last_seen-instance_method"> + #<strong>last_seen</strong> &#x21d2; <tt>DateTime</tt><sup>?</sup> <span class="extras">(readonly)</span> @@ -449,16 +640,16 @@ <tr> <td> <pre class="lines"> -22 -23 -24</pre> +31 +32 +33</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/helium/element.rb', line 22</span> + <pre class="code"><span class="info file"># File 'lib/helium/element.rb', line 31</span> <span class='kw'>def</span> <span class='id identifier rubyid_last_seen'>last_seen</span> <span class='ivar'>@last_seen</span> <span class='kw'>end</span></pre> </td> @@ -551,17 +742,99 @@ </div> </div> + <div id="class_method_details" class="method_details_list"> + <h2>Class Method Details</h2> + + + <div class="method_details first"> + <h3 class="signature first" id="all_path-class_method"> + + .<strong>all_path</strong> &#x21d2; <tt>Object</tt> + + + + + +</h3><table class="source_code"> + <tr> + <td> + <pre class="lines"> + + +18 +19 +20</pre> + </td> + <td> + <pre class="code"><span class="info file"># File 'lib/helium/element.rb', line 18</span> + +<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_all_path'>all_path</span> + <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/element?include=label</span><span class='tstring_end'>&quot;</span></span> +<span class='kw'>end</span></pre> + </td> + </tr> +</table> +</div> + + </div> + <div id="instance_method_details" class="method_details_list"> <h2>Instance Method Details</h2> <div class="method_details first"> - <h3 class="signature first" id="as_json-instance_method"> + <h3 class="signature first" id="add_labels-instance_method"> + #<strong>add_labels</strong>(labels_to_add = []) &#x21d2; <tt>Object</tt> + + + + + +</h3><table class="source_code"> + <tr> + <td> + <pre class="lines"> + + +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74</pre> + </td> + <td> + <pre class="code"><span class="info file"># File 'lib/helium/element.rb', line 64</span> + +<span class='kw'>def</span> <span class='id identifier rubyid_add_labels'>add_labels</span><span class='lparen'>(</span><span class='id identifier rubyid_labels_to_add'>labels_to_add</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span> + <span class='comment'># There&#39;s no first-class support for modifying the labels of a element in +</span> <span class='comment'># the API yet, so we modify each label&#39;s relationship to the element. Once +</span> <span class='comment'># this is supported in the API, this can use #add_relationships instead. +</span> <span class='comment'># Same comment applies for the following 3 functions +</span> <span class='id identifier rubyid_labels_to_add'>labels_to_add</span> <span class='op'>=</span> <span class='const'>Array</span><span class='lparen'>(</span><span class='id identifier rubyid_labels_to_add'>labels_to_add</span><span class='rparen'>)</span> + <span class='id identifier rubyid_labels_to_add'>labels_to_add</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_label'>label</span><span class='op'>|</span> + <span class='id identifier rubyid_label'>label</span><span class='period'>.</span><span class='id identifier rubyid_add_elements'>add_elements</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span> + <span class='kw'>end</span> + <span class='kw'>self</span> +<span class='kw'>end</span></pre> + </td> + </tr> +</table> +</div> + + <div class="method_details "> + <h3 class="signature " id="as_json-instance_method"> + #<strong>as_json</strong> &#x21d2; <tt>Object</tt> @@ -580,26 +853,28 @@ <tr> <td> <pre class="lines"> -28 -29 -30 -31 -32 -33 -34</pre> +55 +56 +57 +58 +59 +60 +61 +62</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/helium/element.rb', line 28</span> + <pre class="code"><span class="info file"># File 'lib/helium/element.rb', line 55</span> <span class='kw'>def</span> <span class='id identifier rubyid_as_json'>as_json</span> <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> <span class='label'>name:</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='label'>mac:</span> <span class='id identifier rubyid_mac'>mac</span><span class='comma'>,</span> - <span class='label'>last_seen:</span> <span class='id identifier rubyid_last_seen'>last_seen</span> + <span class='label'>last_seen:</span> <span class='id identifier rubyid_last_seen'>last_seen</span><span class='comma'>,</span> + <span class='label'>device_type:</span> <span class='id identifier rubyid_device_type'>device_type</span> <span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> </td> </tr> </table> @@ -618,26 +893,142 @@ <tr> <td> <pre class="lines"> -17 -18 -19</pre> +26 +27 +28</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/helium/element.rb', line 17</span> + <pre class="code"><span class="info file"># File 'lib/helium/element.rb', line 26</span> <span class='kw'>def</span> <span class='id identifier rubyid_device_configuration'>device_configuration</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_element_device_configuration'>element_device_configuration</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> <div class="method_details "> + <h3 class="signature " id="labels-instance_method"> + + #<strong>labels</strong> &#x21d2; <tt>Object</tt> + + + + + +</h3><table class="source_code"> + <tr> + <td> + <pre class="lines"> + + +22 +23 +24</pre> + </td> + <td> + <pre class="code"><span class="info file"># File 'lib/helium/element.rb', line 22</span> + +<span class='kw'>def</span> <span class='id identifier rubyid_labels'>labels</span> + <span class='const'>Collection</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>klass:</span> <span class='const'>Label</span><span class='comma'>,</span> <span class='label'>client:</span> <span class='ivar'>@client</span><span class='comma'>,</span> <span class='label'>belongs_to:</span> <span class='kw'>self</span><span class='rparen'>)</span> +<span class='kw'>end</span></pre> + </td> + </tr> +</table> +</div> + + <div class="method_details "> + <h3 class="signature " id="remove_labels-instance_method"> + + #<strong>remove_labels</strong>(labels_to_remove = []) &#x21d2; <tt>Object</tt> + + + + + +</h3><table class="source_code"> + <tr> + <td> + <pre class="lines"> + + +89 +90 +91 +92 +93 +94 +95</pre> + </td> + <td> + <pre class="code"><span class="info file"># File 'lib/helium/element.rb', line 89</span> + +<span class='kw'>def</span> <span class='id identifier rubyid_remove_labels'>remove_labels</span><span class='lparen'>(</span><span class='id identifier rubyid_labels_to_remove'>labels_to_remove</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span> + <span class='id identifier rubyid_labels_to_remove'>labels_to_remove</span> <span class='op'>=</span> <span class='const'>Array</span><span class='lparen'>(</span><span class='id identifier rubyid_labels_to_remove'>labels_to_remove</span><span class='rparen'>)</span> + <span class='id identifier rubyid_labels_to_remove'>labels_to_remove</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_label'>label</span><span class='op'>|</span> + <span class='id identifier rubyid_label'>label</span><span class='period'>.</span><span class='id identifier rubyid_remove_elements'>remove_elements</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span> + <span class='kw'>end</span> + <span class='kw'>self</span> +<span class='kw'>end</span></pre> + </td> + </tr> +</table> +</div> + + <div class="method_details "> + <h3 class="signature " id="replace_labels-instance_method"> + + #<strong>replace_labels</strong>(labels_to_replace = []) &#x21d2; <tt>Object</tt> + + + + + +</h3><table class="source_code"> + <tr> + <td> + <pre class="lines"> + + +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87</pre> + </td> + <td> + <pre class="code"><span class="info file"># File 'lib/helium/element.rb', line 76</span> + +<span class='kw'>def</span> <span class='id identifier rubyid_replace_labels'>replace_labels</span><span class='lparen'>(</span><span class='id identifier rubyid_labels_to_replace'>labels_to_replace</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span> + <span class='comment'># To support replacement, we remove this element from each label, and then +</span> <span class='comment'># add it to the specified set +</span> <span class='id identifier rubyid_labels_to_replace'>labels_to_replace</span> <span class='op'>=</span> <span class='const'>Array</span><span class='lparen'>(</span><span class='id identifier rubyid_labels_to_replace'>labels_to_replace</span><span class='rparen'>)</span> + <span class='id identifier rubyid_labels'>labels</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_label'>label</span><span class='op'>|</span> + <span class='id identifier rubyid_label'>label</span><span class='period'>.</span><span class='id identifier rubyid_remove_elements'>remove_elements</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span> + <span class='kw'>end</span> + <span class='id identifier rubyid_labels_to_replace'>labels_to_replace</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_label'>label</span><span class='op'>|</span> + <span class='id identifier rubyid_label'>label</span><span class='period'>.</span><span class='id identifier rubyid_add_elements'>add_elements</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span> + <span class='kw'>end</span> + <span class='kw'>self</span> +<span class='kw'>end</span></pre> + </td> + </tr> +</table> +</div> + + <div class="method_details "> <h3 class="signature " id="sensors-instance_method"> #<strong>sensors</strong> &#x21d2; <tt>Object</tt> @@ -648,16 +1039,16 @@ <tr> <td> <pre class="lines"> -13 14 -15</pre> +15 +16</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/helium/element.rb', line 13</span> + <pre class="code"><span class="info file"># File 'lib/helium/element.rb', line 14</span> <span class='kw'>def</span> <span class='id identifier rubyid_sensors'>sensors</span> <span class='const'>Collection</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>klass:</span> <span class='const'>Sensor</span><span class='comma'>,</span> <span class='label'>client:</span> <span class='ivar'>@client</span><span class='comma'>,</span> <span class='label'>belongs_to:</span> <span class='kw'>self</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> </td> @@ -726,10 +1117,10 @@ </div> </div> <div id="footer"> - Generated on Mon Feb 13 09:17:41 2017 by + Generated on Wed Apr 5 13:55:54 2017 by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> 0.9.5 (ruby-2.3.1). </div> </div> \ No newline at end of file