docs/Helium/Client/Http.html in helium-ruby-0.20.0 vs docs/Helium/Client/Http.html in helium-ruby-0.21.0

- old
+ new

@@ -4,11 +4,11 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title> Module: Helium::Client::Http - &mdash; Documentation by YARD 0.9.3 + &mdash; Documentation by YARD 0.9.5 </title> <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" /> @@ -252,10 +252,32 @@ <li class="public "> <span class="summary_signature"> + <a href="#put-instance_method" title="#put (instance method)">#<strong>put</strong>(path, opts = {}) &#x21d2; Object </a> + + + + </span> + + + + + + + + + + <span class="summary_desc"><div class='inline'></div></span> + +</li> + + + <li class="public "> + <span class="summary_signature"> + <a href="#url_for-instance_method" title="#url_for (instance method)">#<strong>url_for</strong>(path) &#x21d2; Object </a> </span> @@ -296,19 +318,23 @@ <tr> <td> <pre class="lines"> -34 -35 -36</pre> +39 +40 +41 +42 +43</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/helium/client/http.rb', line 34</span> + <pre class="code"><span class="info file"># File 'lib/helium/client/http.rb', line 39</span> <span class='kw'>def</span> <span class='id identifier rubyid_base_url'>base_url</span> - <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='const'>PROTOCOL</span><span class='embexpr_end'>}</span><span class='tstring_content'>://</span><span class='embexpr_beg'>#{</span><span class='ivar'>@api_host</span><span class='embexpr_end'>}</span><span class='tstring_content'>/v</span><span class='embexpr_beg'>#{</span><span class='const'>API_VERSION</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span> + <span class='id identifier rubyid_url'>url</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='const'>PROTOCOL</span><span class='embexpr_end'>}</span><span class='tstring_content'>://</span><span class='embexpr_beg'>#{</span><span class='ivar'>@api_host</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span> + <span class='id identifier rubyid_url'>url</span> <span class='op'>+=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='ivar'>@api_version</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='ivar'>@api_version</span> + <span class='id identifier rubyid_url'>url</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -326,17 +352,17 @@ <tr> <td> <pre class="lines"> -29 -30 -31 -32</pre> +34 +35 +36 +37</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/helium/client/http.rb', line 29</span> + <pre class="code"><span class="info file"># File 'lib/helium/client/http.rb', line 34</span> <span class='kw'>def</span> <span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span> <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='symbol'>:delete</span><span class='rparen'>)</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_code'>code</span> <span class='op'>==</span> <span class='int'>204</span> <span class='kw'>end</span></pre> @@ -393,20 +419,22 @@ 14 15 16 17 18 -19</pre> +19 +20</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/helium/client/http.rb', line 14</span> <span class='kw'>def</span> <span class='id identifier rubyid_paginated_get'>paginated_get</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</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='id identifier rubyid_klass'>klass</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'>:klass</span><span class='rparen'>)</span> + <span class='id identifier rubyid_cursor_klass'>cursor_klass</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'>:cursor_klass</span><span class='comma'>,</span> <span class='const'>Helium</span><span class='op'>::</span><span class='const'>Cursor</span><span class='rparen'>)</span> <span class='id identifier rubyid_params'>params</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'>:params</span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> - <span class='const'>Cursor</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>client:</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='label'>path:</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='label'>klass:</span> <span class='id identifier rubyid_klass'>klass</span><span class='comma'>,</span> <span class='label'>params:</span> <span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span> + <span class='id identifier rubyid_cursor_klass'>cursor_klass</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>client:</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='label'>path:</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='label'>klass:</span> <span class='id identifier rubyid_klass'>klass</span><span class='comma'>,</span> <span class='label'>params:</span> <span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -424,16 +452,16 @@ <tr> <td> <pre class="lines"> -25 26 -27</pre> +27 +28</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/helium/client/http.rb', line 25</span> + <pre class="code"><span class="info file"># File 'lib/helium/client/http.rb', line 26</span> <span class='kw'>def</span> <span class='id identifier rubyid_patch'>patch</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</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='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='symbol'>:patch</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> </td> @@ -454,26 +482,56 @@ <tr> <td> <pre class="lines"> -21 22 -23</pre> +23 +24</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/helium/client/http.rb', line 21</span> + <pre class="code"><span class="info file"># File 'lib/helium/client/http.rb', line 22</span> <span class='kw'>def</span> <span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</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='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='symbol'>:post</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> <div class="method_details "> + <h3 class="signature " id="put-instance_method"> + + #<strong>put</strong>(path, opts = {}) &#x21d2; <tt>Object</tt> + + + + + +</h3><table class="source_code"> + <tr> + <td> + <pre class="lines"> + + +30 +31 +32</pre> + </td> + <td> + <pre class="code"><span class="info file"># File 'lib/helium/client/http.rb', line 30</span> + +<span class='kw'>def</span> <span class='id identifier rubyid_put'>put</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</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='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='symbol'>:put</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span> +<span class='kw'>end</span></pre> + </td> + </tr> +</table> +</div> + + <div class="method_details "> <h3 class="signature " id="url_for-instance_method"> #<strong>url_for</strong>(path) &#x21d2; <tt>Object</tt> @@ -495,19 +553,19 @@ <tr> <td> <pre class="lines"> -40 -41 -42 -43 -44 -45</pre> +47 +48 +49 +50 +51 +52</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/helium/client/http.rb', line 40</span> + <pre class="code"><span class="info file"># File 'lib/helium/client/http.rb', line 47</span> <span class='kw'>def</span> <span class='id identifier rubyid_url_for'>url_for</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span> <span class='kw'>return</span> <span class='id identifier rubyid_path'>path</span> <span class='kw'>if</span> <span class='id identifier rubyid_path'>path</span> <span class='op'>=~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^http</span><span class='regexp_end'>/</span></span> <span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='id identifier rubyid_path'>path</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^\/</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> @@ -521,12 +579,12 @@ </div> </div> <div id="footer"> - Generated on Thu Sep 1 16:28:30 2016 by + Generated on Thu Jan 12 15:58:34 2017 by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> - 0.9.3 (ruby-2.3.1). + 0.9.5 (ruby-2.3.1). </div> </div> </body> </html> \ No newline at end of file