doc/Pupil.html in pupil-0.1.1 vs doc/Pupil.html in pupil-0.1.2

- old
+ new

@@ -4,11 +4,11 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> Class: Pupil - &mdash; Documentation by YARD 0.7.3 + &mdash; Documentation by YARD 0.7.4 </title> <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" /> @@ -923,31 +923,27 @@ 23 24 25 26 27 -28 -29 -30</pre> +28</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/base.rb', line 15</span> -<span class='kw'>def</span> <span class='id initialize'>initialize</span> <span class='id key'>key</span> - <span class='ivar'>@screen_name</span> <span class='op'>=</span> <span class='id key'>key</span><span class='lbracket'>[</span><span class='symbol'>:screen_name</span><span class='rbracket'>]</span> - <span class='ivar'>@client</span> <span class='op'>=</span> <span class='kw'>nil</span> - <span class='ivar'>@config</span> <span class='op'>=</span> <span class='kw'>nil</span> +<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='id identifier rubyid_key'>key</span> + <span class='ivar'>@screen_name</span> <span class='op'>=</span> <span class='id identifier rubyid_key'>key</span><span class='lbracket'>[</span><span class='symbol'>:screen_name</span><span class='rbracket'>]</span> - <span class='ivar'>@consumer</span> <span class='op'>=</span> <span class='const'>OAuth</span><span class='op'>::</span><span class='const'>Consumer</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span> - <span class='id key'>key</span><span class='lbracket'>[</span><span class='symbol'>:consumer_key</span><span class='rbracket'>]</span><span class='comma'>,</span> - <span class='id key'>key</span><span class='lbracket'>[</span><span class='symbol'>:consumer_secret</span><span class='rbracket'>]</span><span class='comma'>,</span> + <span class='ivar'>@consumer</span> <span class='op'>=</span> <span class='const'>OAuth</span><span class='op'>::</span><span class='const'>Consumer</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> + <span class='id identifier rubyid_key'>key</span><span class='lbracket'>[</span><span class='symbol'>:consumer_key</span><span class='rbracket'>]</span><span class='comma'>,</span> + <span class='id identifier rubyid_key'>key</span><span class='lbracket'>[</span><span class='symbol'>:consumer_secret</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='symbol'>:site</span> <span class='op'>=&gt;</span> <span class='const'>TWITTER_API_URL</span> <span class='rparen'>)</span> - <span class='ivar'>@access_token</span> <span class='op'>=</span> <span class='const'>OAuth</span><span class='op'>::</span><span class='const'>AccessToken</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span> + <span class='ivar'>@access_token</span> <span class='op'>=</span> <span class='const'>OAuth</span><span class='op'>::</span><span class='const'>AccessToken</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='ivar'>@consumer</span><span class='comma'>,</span> - <span class='id key'>key</span><span class='lbracket'>[</span><span class='symbol'>:access_token</span><span class='rbracket'>]</span><span class='comma'>,</span> - <span class='id key'>key</span><span class='lbracket'>[</span><span class='symbol'>:access_token_secret</span><span class='rbracket'>]</span> + <span class='id identifier rubyid_key'>key</span><span class='lbracket'>[</span><span class='symbol'>:access_token</span><span class='rbracket'>]</span><span class='comma'>,</span> + <span class='id identifier rubyid_key'>key</span><span class='lbracket'>[</span><span class='symbol'>:access_token_secret</span><span class='rbracket'>]</span> <span class='rparen'>)</span> <span class='kw'>end</span></pre> </td> </tr> </table> @@ -991,11 +987,11 @@ 10</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/base.rb', line 8</span> -<span class='kw'>def</span> <span class='id screen_name'>screen_name</span> +<span class='kw'>def</span> <span class='id identifier rubyid_screen_name'>screen_name</span> <span class='ivar'>@screen_name</span> <span class='kw'>end</span></pre> </td> </tr> </table> @@ -1065,10 +1061,12 @@ <tr> <td> <pre class="lines"> +32 +33 34 35 36 37 38 @@ -1093,47 +1091,45 @@ 57 58 59 60 61 -62 -63 -64</pre> +62</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/pupil/base.rb', line 34</span> + <pre class="code"><span class="info file"># File 'lib/pupil/base.rb', line 32</span> -<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id param_serializer'>param_serializer</span> <span class='id parameter'>parameter</span> - <span class='kw'>return</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>unless</span> <span class='id parameter'>parameter</span><span class='period'>.</span><span class='id class'>class</span> <span class='op'>==</span> <span class='const'>Hash</span> - <span class='id ant'>ant</span> <span class='op'>=</span> <span class='const'>Hash</span><span class='period'>.</span><span class='id new'>new</span> - <span class='id parameter'>parameter</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id key'>key</span><span class='comma'>,</span> <span class='id value'>value</span><span class='op'>|</span> - <span class='kw'>case</span> <span class='id key'>key</span><span class='period'>.</span><span class='id to_sym'>to_sym</span> +<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_param_serializer'>param_serializer</span> <span class='id identifier rubyid_parameter'>parameter</span> + <span class='kw'>return</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_parameter'>parameter</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>==</span> <span class='const'>Hash</span> + <span class='id identifier rubyid_ant'>ant</span> <span class='op'>=</span> <span class='const'>Hash</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> + <span class='id identifier rubyid_parameter'>parameter</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_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='op'>|</span> + <span class='kw'>case</span> <span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span> <span class='kw'>when</span> <span class='symbol'>:include</span> - <span class='kw'>if</span> <span class='id value'>value</span><span class='period'>.</span><span class='id class'>class</span> <span class='op'>==</span> <span class='const'>String</span> <span class='op'>||</span> <span class='const'>Symbol</span> - <span class='id ant'>ant</span><span class='lbracket'>[</span><span class='symbol'>:include_</span><span class='embexpr_beg'>#{</span><span class='id value'>value</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='symbol'>:true</span> + <span class='kw'>if</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>==</span> <span class='const'>String</span> <span class='op'>||</span> <span class='const'>Symbol</span> + <span class='id identifier rubyid_ant'>ant</span><span class='lbracket'>[</span><span class='symbol'>:include_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='symbol'>:true</span> <span class='kw'>break</span> <span class='kw'>end</span> - <span class='id value'>value</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id element'>element</span><span class='op'>|</span> - <span class='id raise'>raise</span> <span class='const'>UnsupportedParameter</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>include_entities is not supported.</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='id element'>element</span><span class='period'>.</span><span class='id to_sym'>to_sym</span> <span class='op'>==</span> <span class='symbol'>:entities</span> - <span class='id ant'>ant</span><span class='lbracket'>[</span><span class='symbol'>:include_</span><span class='embexpr_beg'>#{</span><span class='id element'>element</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='symbol'>:true</span> + <span class='id identifier rubyid_value'>value</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_element'>element</span><span class='op'>|</span> + <span class='id identifier rubyid_raise'>raise</span> <span class='const'>UnsupportedParameter</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>include_entities is not supported.</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_element'>element</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span> <span class='op'>==</span> <span class='symbol'>:entities</span> + <span class='id identifier rubyid_ant'>ant</span><span class='lbracket'>[</span><span class='symbol'>:include_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_element'>element</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='symbol'>:true</span> <span class='kw'>end</span> <span class='kw'>when</span> <span class='symbol'>:exclude</span> - <span class='kw'>if</span> <span class='id value'>value</span><span class='period'>.</span><span class='id class'>class</span> <span class='op'>==</span> <span class='const'>String</span> <span class='op'>||</span> <span class='const'>Symbol</span> - <span class='id ant'>ant</span><span class='lbracket'>[</span><span class='symbol'>:exclude_</span><span class='embexpr_beg'>#{</span><span class='id value'>value</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='symbol'>:true</span> + <span class='kw'>if</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>==</span> <span class='const'>String</span> <span class='op'>||</span> <span class='const'>Symbol</span> + <span class='id identifier rubyid_ant'>ant</span><span class='lbracket'>[</span><span class='symbol'>:exclude_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='symbol'>:true</span> <span class='kw'>break</span> <span class='kw'>end</span> - <span class='id value'>value</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id element'>element</span><span class='op'>|</span> - <span class='id ant'>ant</span><span class='lbracket'>[</span><span class='symbol'>:exclude_</span><span class='embexpr_beg'>#{</span><span class='id element'>element</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='symbol'>:true</span> + <span class='id identifier rubyid_value'>value</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_element'>element</span><span class='op'>|</span> + <span class='id identifier rubyid_ant'>ant</span><span class='lbracket'>[</span><span class='symbol'>:exclude_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_element'>element</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='symbol'>:true</span> <span class='kw'>end</span> <span class='kw'>else</span> - <span class='id ant'>ant</span><span class='lbracket'>[</span><span class='id key'>key</span><span class='period'>.</span><span class='id to_sym'>to_sym</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id value'>value</span><span class='period'>.</span><span class='id to_s'>to_s</span> + <span class='id identifier rubyid_ant'>ant</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='kw'>end</span> <span class='kw'>end</span> - <span class='id param'>param</span> <span class='op'>=</span> <span class='id ant'>ant</span><span class='period'>.</span><span class='id inject'>inject</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id k'>k</span><span class='comma'>,</span><span class='id v'>v</span><span class='op'>|</span><span class='id k'>k</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>&amp;</span><span class='embexpr_beg'>#{</span><span class='id v'>v</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='tstring_content'>=</span><span class='embexpr_beg'>#{</span><span class='const'>URI</span><span class='period'>.</span><span class='id escape'>escape</span><span class='lparen'>(</span><span class='id v'>v</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='rbrace'>}</span><span class='period'>.</span><span class='id sub!'>sub!</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^&amp;</span><span class='regexp_end'>/</span></span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>?</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> - <span class='kw'>return</span> <span class='id param'>param</span> <span class='op'>?</span> <span class='id param'>param</span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span> + <span class='id identifier rubyid_param'>param</span> <span class='op'>=</span> <span class='id identifier rubyid_ant'>ant</span><span class='period'>.</span><span class='id identifier rubyid_inject'>inject</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>&amp;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='tstring_content'>=</span><span class='embexpr_beg'>#{</span><span class='const'>URI</span><span class='period'>.</span><span class='id identifier rubyid_escape'>escape</span><span class='lparen'>(</span><span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_sub!'>sub!</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^&amp;</span><span class='regexp_end'>/</span></span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>?</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> + <span class='kw'>return</span> <span class='id identifier rubyid_param'>param</span> <span class='op'>?</span> <span class='id identifier rubyid_param'>param</span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -1232,13 +1228,13 @@ 8</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/lists.rb', line 5</span> -<span class='kw'>def</span> <span class='id addlist'>addlist</span><span class='lparen'>(</span><span class='id listid'>listid</span><span class='comma'>,</span><span class='id ids'>ids</span><span class='rparen'>)</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='ivar'>@access_token</span><span class='period'>.</span><span class='id post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://api.twitter.com/1/</span><span class='embexpr_beg'>#{</span><span class='ivar'>@username</span><span class='rbrace'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='id listid'>listid</span><span class='rbrace'>}</span><span class='tstring_content'>/create_all.xml?user_id=</span><span class='embexpr_beg'>#{</span><span class='id ids'>ids</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> - <span class='kw'>return</span> <span class='id response'>response</span> +<span class='kw'>def</span> <span class='id identifier rubyid_addlist'>addlist</span><span class='lparen'>(</span><span class='id identifier rubyid_listid'>listid</span><span class='comma'>,</span><span class='id identifier rubyid_ids'>ids</span><span class='rparen'>)</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='ivar'>@access_token</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://api.twitter.com/1/</span><span class='embexpr_beg'>#{</span><span class='ivar'>@username</span><span class='rbrace'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_listid'>listid</span><span class='rbrace'>}</span><span class='tstring_content'>/create_all.xml?user_id=</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_ids'>ids</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> + <span class='kw'>return</span> <span class='id identifier rubyid_response'>response</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -1323,20 +1319,20 @@ 16</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/blocks.rb', line 4</span> -<span class='kw'>def</span> <span class='id block'>block</span> <span class='id param'>param</span> - <span class='kw'>case</span> <span class='id param'>param</span><span class='period'>.</span><span class='id keys'>keys</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id to_sym'>to_sym</span> +<span class='kw'>def</span> <span class='id identifier rubyid_block'>block</span> <span class='id identifier rubyid_param'>param</span> + <span class='kw'>case</span> <span class='id identifier rubyid_param'>param</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span> <span class='kw'>when</span> <span class='symbol'>:screen_name</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/blocks/create.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='symbol'>:screen_name</span> <span class='op'>=&gt;</span> <span class='id param'>param</span><span class='period'>.</span><span class='id values'>values</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/blocks/create.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='symbol'>:screen_name</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_param'>param</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>when</span> <span class='symbol'>:id</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/blocks/create.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='symbol'>:user_id</span> <span class='op'>=&gt;</span> <span class='id param'>param</span><span class='period'>.</span><span class='id values'>values</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/blocks/create.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='symbol'>:user_id</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_param'>param</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>end</span> - <span class='kw'>if</span> <span class='id response'>response</span><span class='period'>.</span><span class='id class'>class</span> <span class='op'>==</span> <span class='const'>Hash</span> <span class='op'>&amp;&amp;</span> <span class='id response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>id</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> - <span class='kw'>return</span> <span class='const'>User</span><span class='period'>.</span><span class='id new'>new</span> <span class='id response'>response</span> + <span class='kw'>if</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>==</span> <span class='const'>Hash</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>id</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> + <span class='kw'>return</span> <span class='const'>User</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_response'>response</span> <span class='kw'>end</span> <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>end</span></pre> </td> </tr> @@ -1398,18 +1394,18 @@ 43</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/blocks.rb', line 35</span> -<span class='kw'>def</span> <span class='id blocking'>blocking</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/blocks/blocking.json</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> - <span class='id users'>users</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id new'>new</span> - <span class='id response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>users</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id element'>element</span><span class='op'>|</span> - <span class='id user'>user</span> <span class='op'>=</span> <span class='const'>User</span><span class='period'>.</span><span class='id new'>new</span> <span class='id element'>element</span> - <span class='id users'>users</span> <span class='op'>&lt;&lt;</span> <span class='id user'>user</span> +<span class='kw'>def</span> <span class='id identifier rubyid_blocking'>blocking</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/blocks/blocking.json</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> + <span class='id identifier rubyid_users'>users</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> + <span class='id identifier rubyid_response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>users</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</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_element'>element</span><span class='op'>|</span> + <span class='id identifier rubyid_user'>user</span> <span class='op'>=</span> <span class='const'>User</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_element'>element</span> + <span class='id identifier rubyid_users'>users</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_user'>user</span> <span class='kw'>end</span> - <span class='kw'>return</span> <span class='id users'>users</span> + <span class='kw'>return</span> <span class='id identifier rubyid_users'>users</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -1433,13 +1429,13 @@ 83</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/statuses.rb', line 80</span> -<span class='kw'>def</span> <span class='id destroy'>destroy</span> <span class='id status_id'>status_id</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/statuses/destroy/</span><span class='embexpr_beg'>#{</span><span class='id status_id'>status_id</span><span class='rbrace'>}</span><span class='tstring_content'>.json</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> - <span class='kw'>return</span> <span class='id response'>response</span> +<span class='kw'>def</span> <span class='id identifier rubyid_destroy'>destroy</span> <span class='id identifier rubyid_status_id'>status_id</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/statuses/destroy/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_status_id'>status_id</span><span class='rbrace'>}</span><span class='tstring_content'>.json</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> + <span class='kw'>return</span> <span class='id identifier rubyid_response'>response</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -1525,27 +1521,27 @@ 22</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/direct_messages.rb', line 5</span> -<span class='kw'>def</span> <span class='id dm'>dm</span><span class='lparen'>(</span><span class='id param'>param</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> - <span class='id param_s'>param_s</span> <span class='op'>=</span> <span class='id param_serializer'>param_serializer</span><span class='lparen'>(</span><span class='id param'>param</span><span class='rparen'>)</span> +<span class='kw'>def</span> <span class='id identifier rubyid_dm'>dm</span><span class='lparen'>(</span><span class='id identifier rubyid_param'>param</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> + <span class='id identifier rubyid_param_s'>param_s</span> <span class='op'>=</span> <span class='id identifier rubyid_param_serializer'>param_serializer</span><span class='lparen'>(</span><span class='id identifier rubyid_param'>param</span><span class='rparen'>)</span> <span class='kw'>begin</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='ivar'>@access_token</span><span class='period'>.</span><span class='id get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://api.twitter.com/1/direct_messages.xml</span><span class='tstring_end'>&quot;</span></span><span class='op'>+</span><span class='id param_s'>param_s</span><span class='rparen'>)</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='ivar'>@access_token</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://api.twitter.com/1/direct_messages.xml</span><span class='tstring_end'>&quot;</span></span><span class='op'>+</span><span class='id identifier rubyid_param_s'>param_s</span><span class='rparen'>)</span> <span class='kw'>rescue</span> <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>end</span> - <span class='id doc'>doc</span> <span class='op'>=</span> <span class='const'>REXML</span><span class='op'>::</span><span class='const'>Document</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='id response'>response</span><span class='period'>.</span><span class='id body'>body</span><span class='rparen'>)</span> - <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>if</span> <span class='id doc'>doc</span><span class='period'>.</span><span class='id is_error?'>is_error?</span> - <span class='id directmessages'>directmessages</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id new'>new</span> + <span class='id identifier rubyid_doc'>doc</span> <span class='op'>=</span> <span class='const'>REXML</span><span class='op'>::</span><span class='const'>Document</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span><span class='rparen'>)</span> + <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>if</span> <span class='id identifier rubyid_doc'>doc</span><span class='period'>.</span><span class='id identifier rubyid_is_error?'>is_error?</span> + <span class='id identifier rubyid_directmessages'>directmessages</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> - <span class='id doc'>doc</span><span class='period'>.</span><span class='id get_elements'>get_elements</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/direct-messages/direct_message</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id each'>each</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id element'>element</span><span class='op'>|</span> - <span class='id dm'>dm</span> <span class='op'>=</span> <span class='const'>DirectMessage</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='id element'>element</span><span class='rparen'>)</span> - <span class='id directmessages'>directmessages</span> <span class='op'>&lt;&lt;</span> <span class='id dm'>dm</span> + <span class='id identifier rubyid_doc'>doc</span><span class='period'>.</span><span class='id identifier rubyid_get_elements'>get_elements</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/direct-messages/direct_message</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_element'>element</span><span class='op'>|</span> + <span class='id identifier rubyid_dm'>dm</span> <span class='op'>=</span> <span class='const'>DirectMessage</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_element'>element</span><span class='rparen'>)</span> + <span class='id identifier rubyid_directmessages'>directmessages</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_dm'>dm</span> <span class='rbrace'>}</span> - <span class='kw'>return</span> <span class='id directmessages'>directmessages</span> + <span class='kw'>return</span> <span class='id identifier rubyid_directmessages'>directmessages</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -1625,17 +1621,17 @@ 56</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/direct_messages.rb', line 49</span> -<span class='kw'>def</span> <span class='id dm_destroy'>dm_destroy</span><span class='lparen'>(</span><span class='id dm_id'>dm_id</span><span class='rparen'>)</span> +<span class='kw'>def</span> <span class='id identifier rubyid_dm_destroy'>dm_destroy</span><span class='lparen'>(</span><span class='id identifier rubyid_dm_id'>dm_id</span><span class='rparen'>)</span> <span class='kw'>begin</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='ivar'>@access_token</span><span class='period'>.</span><span class='id post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://api.twitter.com/1/direct_messages/destroy/</span><span class='embexpr_beg'>#{</span><span class='id dm_id'>dm_id</span><span class='rbrace'>}</span><span class='tstring_content'>.xml</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='ivar'>@access_token</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://api.twitter.com/1/direct_messages/destroy/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_dm_id'>dm_id</span><span class='rbrace'>}</span><span class='tstring_content'>.xml</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>rescue</span> <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>end</span> - <span class='kw'>return</span> <span class='id response'>response</span> + <span class='kw'>return</span> <span class='id identifier rubyid_response'>response</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -1721,27 +1717,27 @@ 44</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/direct_messages.rb', line 27</span> -<span class='kw'>def</span> <span class='id dm_sent'>dm_sent</span><span class='lparen'>(</span><span class='id param'>param</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> - <span class='id param_s'>param_s</span> <span class='op'>=</span> <span class='id param_serializer'>param_serializer</span><span class='lparen'>(</span><span class='id param'>param</span><span class='rparen'>)</span> +<span class='kw'>def</span> <span class='id identifier rubyid_dm_sent'>dm_sent</span><span class='lparen'>(</span><span class='id identifier rubyid_param'>param</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> + <span class='id identifier rubyid_param_s'>param_s</span> <span class='op'>=</span> <span class='id identifier rubyid_param_serializer'>param_serializer</span><span class='lparen'>(</span><span class='id identifier rubyid_param'>param</span><span class='rparen'>)</span> <span class='kw'>begin</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='ivar'>@access_token</span><span class='period'>.</span><span class='id get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://api.twitter.com/1/direct_messages/sent.xml</span><span class='tstring_end'>&quot;</span></span><span class='op'>+</span><span class='id param_s'>param_s</span><span class='rparen'>)</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='ivar'>@access_token</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://api.twitter.com/1/direct_messages/sent.xml</span><span class='tstring_end'>&quot;</span></span><span class='op'>+</span><span class='id identifier rubyid_param_s'>param_s</span><span class='rparen'>)</span> <span class='kw'>rescue</span> <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>end</span> - <span class='id doc'>doc</span> <span class='op'>=</span> <span class='const'>REXML</span><span class='op'>::</span><span class='const'>Document</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='id response'>response</span><span class='period'>.</span><span class='id body'>body</span><span class='rparen'>)</span> - <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>if</span> <span class='id doc'>doc</span><span class='period'>.</span><span class='id is_error?'>is_error?</span> - <span class='id directmessages'>directmessages</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id new'>new</span> + <span class='id identifier rubyid_doc'>doc</span> <span class='op'>=</span> <span class='const'>REXML</span><span class='op'>::</span><span class='const'>Document</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span><span class='rparen'>)</span> + <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>if</span> <span class='id identifier rubyid_doc'>doc</span><span class='period'>.</span><span class='id identifier rubyid_is_error?'>is_error?</span> + <span class='id identifier rubyid_directmessages'>directmessages</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> - <span class='id doc'>doc</span><span class='period'>.</span><span class='id get_elements'>get_elements</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/direct-messages/direct_message</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id each'>each</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id element'>element</span><span class='op'>|</span> - <span class='id dm'>dm</span> <span class='op'>=</span> <span class='const'>DirectMessage</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='id element'>element</span><span class='rparen'>)</span> - <span class='id directmessages'>directmessages</span> <span class='op'>&lt;&lt;</span> <span class='id dm'>dm</span> + <span class='id identifier rubyid_doc'>doc</span><span class='period'>.</span><span class='id identifier rubyid_get_elements'>get_elements</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/direct-messages/direct_message</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_element'>element</span><span class='op'>|</span> + <span class='id identifier rubyid_dm'>dm</span> <span class='op'>=</span> <span class='const'>DirectMessage</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_element'>element</span><span class='rparen'>)</span> + <span class='id identifier rubyid_directmessages'>directmessages</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_dm'>dm</span> <span class='rbrace'>}</span> - <span class='kw'>return</span> <span class='id directmessages'>directmessages</span> + <span class='kw'>return</span> <span class='id identifier rubyid_directmessages'>directmessages</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -1796,13 +1792,13 @@ 22</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/account.rb', line 19</span> -<span class='kw'>def</span> <span class='id end_session'>end_session</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/account/end_session.json</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> - <span class='kw'>return</span> <span class='id response'>response</span> +<span class='kw'>def</span> <span class='id identifier rubyid_end_session'>end_session</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/account/end_session.json</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> + <span class='kw'>return</span> <span class='id identifier rubyid_response'>response</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -1887,20 +1883,20 @@ 52</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/friendships.rb', line 40</span> -<span class='kw'>def</span> <span class='id follow'>follow</span> <span class='id param'>param</span> - <span class='kw'>case</span> <span class='id param'>param</span><span class='period'>.</span><span class='id keys'>keys</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id to_sym'>to_sym</span> +<span class='kw'>def</span> <span class='id identifier rubyid_follow'>follow</span> <span class='id identifier rubyid_param'>param</span> + <span class='kw'>case</span> <span class='id identifier rubyid_param'>param</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span> <span class='kw'>when</span> <span class='symbol'>:screen_name</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/friendships/create.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='symbol'>:screen_name</span> <span class='op'>=&gt;</span> <span class='id param'>param</span><span class='period'>.</span><span class='id values'>values</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/friendships/create.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='symbol'>:screen_name</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_param'>param</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>when</span> <span class='symbol'>:id</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/friendships/create.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='symbol'>:user_id</span> <span class='op'>=&gt;</span> <span class='id param'>param</span><span class='period'>.</span><span class='id values'>values</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/friendships/create.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='symbol'>:user_id</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_param'>param</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>end</span> - <span class='kw'>if</span> <span class='id response'>response</span><span class='period'>.</span><span class='id class'>class</span> <span class='op'>==</span> <span class='const'>Hash</span> <span class='op'>&amp;&amp;</span> <span class='id response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>id</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> - <span class='kw'>return</span> <span class='const'>User</span><span class='period'>.</span><span class='id new'>new</span> <span class='id response'>response</span> + <span class='kw'>if</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>==</span> <span class='const'>Hash</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>id</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> + <span class='kw'>return</span> <span class='const'>User</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_response'>response</span> <span class='kw'>end</span> <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>end</span></pre> </td> </tr> @@ -1930,17 +1926,17 @@ 18</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/friendships.rb', line 11</span> -<span class='kw'>def</span> <span class='id followers_ids'>followers_ids</span> <span class='id name'>name</span><span class='op'>=</span><span class='ivar'>@screen_name</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/1/followers/ids/</span><span class='embexpr_beg'>#{</span><span class='id name'>name</span><span class='rbrace'>}</span><span class='tstring_content'>.json</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> - <span class='id ids'>ids</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id new'>new</span> - <span class='id response'>response</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id element'>element</span><span class='op'>|</span> - <span class='id ids'>ids</span> <span class='op'>&lt;&lt;</span> <span class='id element'>element</span> +<span class='kw'>def</span> <span class='id identifier rubyid_followers_ids'>followers_ids</span> <span class='id identifier rubyid_name'>name</span><span class='op'>=</span><span class='ivar'>@screen_name</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/1/followers/ids/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'>.json</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> + <span class='id identifier rubyid_ids'>ids</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> + <span class='id identifier rubyid_response'>response</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_element'>element</span><span class='op'>|</span> + <span class='id identifier rubyid_ids'>ids</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_element'>element</span> <span class='kw'>end</span> - <span class='kw'>return</span> <span class='id ids'>ids</span> + <span class='kw'>return</span> <span class='id identifier rubyid_ids'>ids</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -1968,17 +1964,17 @@ 9</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/friendships.rb', line 2</span> -<span class='kw'>def</span> <span class='id friends_ids'>friends_ids</span> <span class='id name'>name</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/friends/ids/</span><span class='embexpr_beg'>#{</span><span class='id name'>name</span><span class='rbrace'>}</span><span class='tstring_content'>.json</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> - <span class='id ids'>ids</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id new'>new</span> - <span class='id response'>response</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id element'>element</span><span class='op'>|</span> - <span class='id ids'>ids</span> <span class='op'>&lt;&lt;</span> <span class='id element'>element</span> +<span class='kw'>def</span> <span class='id identifier rubyid_friends_ids'>friends_ids</span> <span class='id identifier rubyid_name'>name</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/friends/ids/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'>.json</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> + <span class='id identifier rubyid_ids'>ids</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> + <span class='id identifier rubyid_response'>response</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_element'>element</span><span class='op'>|</span> + <span class='id identifier rubyid_ids'>ids</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_element'>element</span> <span class='kw'>end</span> - <span class='kw'>return</span> <span class='id ids'>ids</span> + <span class='kw'>return</span> <span class='id identifier rubyid_ids'>ids</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -2080,14 +2076,14 @@ 32</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/friendships.rb', line 24</span> -<span class='kw'>def</span> <span class='id friendship?'>friendship?</span><span class='lparen'>(</span><span class='id src'>src</span><span class='comma'>,</span> <span class='id dst'>dst</span><span class='rparen'>)</span> - <span class='id param'>param</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='symbol'>:source_screen_name</span> <span class='op'>=&gt;</span> <span class='id src'>src</span><span class='comma'>,</span> <span class='symbol'>:target_screen_name</span> <span class='op'>=&gt;</span> <span class='id dst'>dst</span><span class='rbrace'>}</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/friendships/show.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id param'>param</span><span class='rparen'>)</span> - <span class='kw'>if</span> <span class='id response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>relationship</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>source</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>following</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='kw'>true</span> <span class='op'>&amp;&amp;</span> <span class='id response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>relationship</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>target</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>following</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='kw'>true</span> <span class='kw'>then</span> +<span class='kw'>def</span> <span class='id identifier rubyid_friendship?'>friendship?</span><span class='lparen'>(</span><span class='id identifier rubyid_src'>src</span><span class='comma'>,</span> <span class='id identifier rubyid_dst'>dst</span><span class='rparen'>)</span> + <span class='id identifier rubyid_param'>param</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='symbol'>:source_screen_name</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_src'>src</span><span class='comma'>,</span> <span class='symbol'>:target_screen_name</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_dst'>dst</span><span class='rbrace'>}</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/friendships/show.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_param'>param</span><span class='rparen'>)</span> + <span class='kw'>if</span> <span class='id identifier rubyid_response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>relationship</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>source</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>following</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='kw'>true</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>relationship</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>target</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>following</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='kw'>true</span> <span class='kw'>then</span> <span class='kw'>return</span> <span class='kw'>true</span> <span class='kw'>else</span> <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>end</span> <span class='kw'>end</span></pre> @@ -2107,31 +2103,31 @@ <tr> <td> <pre class="lines"> +68 +69 70 71 72 73 74 75 -76 -77 -78</pre> +76</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/pupil/base.rb', line 70</span> + <pre class="code"><span class="info file"># File 'lib/pupil/base.rb', line 68</span> -<span class='kw'>def</span> <span class='id get'>get</span> <span class='id url'>url</span><span class='comma'>,</span> <span class='id param'>param</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> - <span class='id param_s'>param_s</span> <span class='op'>=</span> <span class='id param_serializer'>param_serializer</span><span class='lparen'>(</span><span class='id param'>param</span><span class='rparen'>)</span> +<span class='kw'>def</span> <span class='id identifier rubyid_get'>get</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_param'>param</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> + <span class='id identifier rubyid_param_s'>param_s</span> <span class='op'>=</span> <span class='id identifier rubyid_param_serializer'>param_serializer</span><span class='lparen'>(</span><span class='id identifier rubyid_param'>param</span><span class='rparen'>)</span> <span class='kw'>begin</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='ivar'>@access_token</span><span class='period'>.</span><span class='id get'>get</span><span class='lparen'>(</span><span class='id url'>url</span><span class='op'>+</span><span class='id param_s'>param_s</span><span class='rparen'>)</span><span class='period'>.</span><span class='id body'>body</span> - <span class='kw'>rescue</span> <span class='op'>=&gt;</span> <span class='id vars'>vars</span> - <span class='id raise'>raise</span> <span class='const'>NetworkError</span><span class='comma'>,</span> <span class='id vars'>vars</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='ivar'>@access_token</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='op'>+</span><span class='id identifier rubyid_param_s'>param_s</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span> + <span class='kw'>rescue</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_vars'>vars</span> + <span class='id identifier rubyid_raise'>raise</span> <span class='const'>NetworkError</span><span class='comma'>,</span> <span class='id identifier rubyid_vars'>vars</span> <span class='kw'>end</span> - <span class='kw'>return</span> <span class='const'>JSON</span><span class='period'>.</span><span class='id parse'>parse</span><span class='lparen'>(</span><span class='id response'>response</span><span class='rparen'>)</span> + <span class='kw'>return</span> <span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_response'>response</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -2298,18 +2294,18 @@ 20</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/statuses.rb', line 12</span> -<span class='kw'>def</span> <span class='id home_timeline'>home_timeline</span> <span class='id param'>param</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/statuses/home_timeline.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id param'>param</span><span class='rparen'>)</span> - <span class='id statuses'>statuses</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id new'>new</span> - <span class='id response'>response</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id element'>element</span><span class='op'>|</span> - <span class='id status'>status</span> <span class='op'>=</span> <span class='const'>Status</span><span class='period'>.</span><span class='id new'>new</span> <span class='id element'>element</span> - <span class='id statuses'>statuses</span> <span class='op'>&lt;&lt;</span> <span class='id status'>status</span> +<span class='kw'>def</span> <span class='id identifier rubyid_home_timeline'>home_timeline</span> <span class='id identifier rubyid_param'>param</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/statuses/home_timeline.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_param'>param</span><span class='rparen'>)</span> + <span class='id identifier rubyid_statuses'>statuses</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> + <span class='id identifier rubyid_response'>response</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_element'>element</span><span class='op'>|</span> + <span class='id identifier rubyid_status'>status</span> <span class='op'>=</span> <span class='const'>Status</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_element'>element</span> + <span class='id identifier rubyid_statuses'>statuses</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_status'>status</span> <span class='kw'>end</span> - <span class='kw'>return</span> <span class='id statuses'>statuses</span> + <span class='kw'>return</span> <span class='id identifier rubyid_statuses'>statuses</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -2371,20 +2367,20 @@ 21</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/lists.rb', line 11</span> -<span class='kw'>def</span> <span class='id lists'>lists</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='ivar'>@access_token</span><span class='period'>.</span><span class='id get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://api.twitter.com/1/</span><span class='embexpr_beg'>#{</span><span class='ivar'>@username</span><span class='rbrace'>}</span><span class='tstring_content'>/lists.xml</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> - <span class='id doc'>doc</span> <span class='op'>=</span> <span class='const'>REXML</span><span class='op'>::</span><span class='const'>Document</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='id response'>response</span><span class='period'>.</span><span class='id body'>body</span><span class='rparen'>)</span> - <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>if</span> <span class='id doc'>doc</span><span class='period'>.</span><span class='id is_error?'>is_error?</span> - <span class='id lists'>lists</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id new'>new</span> - <span class='id doc'>doc</span><span class='period'>.</span><span class='id get_elements'>get_elements</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/lists_list/lists/list</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id each'>each</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id element'>element</span><span class='op'>|</span> - <span class='id list'>list</span> <span class='op'>=</span> <span class='const'>List</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='id element'>element</span><span class='rparen'>)</span> - <span class='id lists'>lists</span> <span class='op'>&lt;&lt;</span> <span class='id list'>list</span> +<span class='kw'>def</span> <span class='id identifier rubyid_lists'>lists</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='ivar'>@access_token</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://api.twitter.com/1/</span><span class='embexpr_beg'>#{</span><span class='ivar'>@username</span><span class='rbrace'>}</span><span class='tstring_content'>/lists.xml</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> + <span class='id identifier rubyid_doc'>doc</span> <span class='op'>=</span> <span class='const'>REXML</span><span class='op'>::</span><span class='const'>Document</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span><span class='rparen'>)</span> + <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>if</span> <span class='id identifier rubyid_doc'>doc</span><span class='period'>.</span><span class='id identifier rubyid_is_error?'>is_error?</span> + <span class='id identifier rubyid_lists'>lists</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> + <span class='id identifier rubyid_doc'>doc</span><span class='period'>.</span><span class='id identifier rubyid_get_elements'>get_elements</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/lists_list/lists/list</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_element'>element</span><span class='op'>|</span> + <span class='id identifier rubyid_list'>list</span> <span class='op'>=</span> <span class='const'>List</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_element'>element</span><span class='rparen'>)</span> + <span class='id identifier rubyid_lists'>lists</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_list'>list</span> <span class='rbrace'>}</span> - <span class='kw'>return</span> <span class='id lists'>lists</span> + <span class='kw'>return</span> <span class='id identifier rubyid_lists'>lists</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -2413,17 +2409,17 @@ 31</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/lists.rb', line 23</span> -<span class='kw'>def</span> <span class='id lists_member_create'>lists_member_create</span><span class='lparen'>(</span><span class='id listid'>listid</span><span class='comma'>,</span><span class='id id'>id</span><span class='rparen'>)</span> +<span class='kw'>def</span> <span class='id identifier rubyid_lists_member_create'>lists_member_create</span><span class='lparen'>(</span><span class='id identifier rubyid_listid'>listid</span><span class='comma'>,</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span> <span class='kw'>begin</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='ivar'>@access_token</span><span class='period'>.</span><span class='id post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://api.twitter.com/1/</span><span class='embexpr_beg'>#{</span><span class='ivar'>@username</span><span class='rbrace'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='id listid'>listid</span><span class='rbrace'>}</span><span class='tstring_content'>/members.xml?id=</span><span class='embexpr_beg'>#{</span><span class='id id'>id</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='ivar'>@access_token</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://api.twitter.com/1/</span><span class='embexpr_beg'>#{</span><span class='ivar'>@username</span><span class='rbrace'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_listid'>listid</span><span class='rbrace'>}</span><span class='tstring_content'>/members.xml?id=</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_id'>id</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>rescue</span> <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>else</span> - <span class='kw'>return</span> <span class='id response'>response</span> + <span class='kw'>return</span> <span class='id identifier rubyid_response'>response</span> <span class='kw'>end</span> <span class='kw'>end</span></pre> </td> </tr> </table> @@ -2453,18 +2449,18 @@ 10</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/users.rb', line 2</span> -<span class='kw'>def</span> <span class='id lookup'>lookup</span> <span class='id param'>param</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/users/lookup.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id param'>param</span><span class='rparen'>)</span> - <span class='id users'>users</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id new'>new</span> - <span class='id response'>response</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id element'>element</span><span class='op'>|</span> - <span class='id user'>user</span> <span class='op'>=</span> <span class='const'>User</span><span class='period'>.</span><span class='id new'>new</span> <span class='id element'>element</span> - <span class='id users'>users</span> <span class='op'>&lt;&lt;</span> <span class='id user'>user</span> +<span class='kw'>def</span> <span class='id identifier rubyid_lookup'>lookup</span> <span class='id identifier rubyid_param'>param</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/users/lookup.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_param'>param</span><span class='rparen'>)</span> + <span class='id identifier rubyid_users'>users</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> + <span class='id identifier rubyid_response'>response</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_element'>element</span><span class='op'>|</span> + <span class='id identifier rubyid_user'>user</span> <span class='op'>=</span> <span class='const'>User</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_element'>element</span> + <span class='id identifier rubyid_users'>users</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_user'>user</span> <span class='kw'>end</span> - <span class='kw'>return</span> <span class='id users'>users</span> + <span class='kw'>return</span> <span class='id identifier rubyid_users'>users</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -2541,18 +2537,18 @@ 32</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/statuses.rb', line 24</span> -<span class='kw'>def</span> <span class='id mentions'>mentions</span> <span class='id param'>param</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/statuses/mentions.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id param'>param</span><span class='rparen'>)</span> - <span class='id statuses'>statuses</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id new'>new</span> - <span class='id response'>response</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id element'>element</span><span class='op'>|</span> - <span class='id status'>status</span> <span class='op'>=</span> <span class='const'>Status</span><span class='period'>.</span><span class='id new'>new</span> <span class='id element'>element</span> - <span class='id statuses'>statuses</span> <span class='op'>&lt;&lt;</span> <span class='id status'>status</span> +<span class='kw'>def</span> <span class='id identifier rubyid_mentions'>mentions</span> <span class='id identifier rubyid_param'>param</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/statuses/mentions.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_param'>param</span><span class='rparen'>)</span> + <span class='id identifier rubyid_statuses'>statuses</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> + <span class='id identifier rubyid_response'>response</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_element'>element</span><span class='op'>|</span> + <span class='id identifier rubyid_status'>status</span> <span class='op'>=</span> <span class='const'>Status</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_element'>element</span> + <span class='id identifier rubyid_statuses'>statuses</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_status'>status</span> <span class='kw'>end</span> - <span class='kw'>return</span> <span class='id statuses'>statuses</span> + <span class='kw'>return</span> <span class='id identifier rubyid_statuses'>statuses</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -2568,19 +2564,19 @@ <tr> <td> <pre class="lines"> -66 -67 -68</pre> +64 +65 +66</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/pupil/base.rb', line 66</span> + <pre class="code"><span class="info file"># File 'lib/pupil/base.rb', line 64</span> -<span class='kw'>def</span> <span class='id param_serializer'>param_serializer</span> <span class='id parameter'>parameter</span> - <span class='const'>Pupil</span><span class='period'>.</span><span class='id param_serializer'>param_serializer</span> <span class='id parameter'>parameter</span> +<span class='kw'>def</span> <span class='id identifier rubyid_param_serializer'>param_serializer</span> <span class='id identifier rubyid_parameter'>parameter</span> + <span class='const'>Pupil</span><span class='period'>.</span><span class='id identifier rubyid_param_serializer'>param_serializer</span> <span class='id identifier rubyid_parameter'>parameter</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -2596,31 +2592,31 @@ <tr> <td> <pre class="lines"> +78 +79 80 81 82 83 84 85 -86 -87 -88</pre> +86</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/pupil/base.rb', line 80</span> + <pre class="code"><span class="info file"># File 'lib/pupil/base.rb', line 78</span> -<span class='kw'>def</span> <span class='id post'>post</span> <span class='id url'>url</span><span class='comma'>,</span> <span class='id param'>param</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> - <span class='id param_s'>param_s</span> <span class='op'>=</span> <span class='id param_serializer'>param_serializer</span><span class='lparen'>(</span><span class='id param'>param</span><span class='rparen'>)</span> +<span class='kw'>def</span> <span class='id identifier rubyid_post'>post</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_param'>param</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> + <span class='id identifier rubyid_param_s'>param_s</span> <span class='op'>=</span> <span class='id identifier rubyid_param_serializer'>param_serializer</span><span class='lparen'>(</span><span class='id identifier rubyid_param'>param</span><span class='rparen'>)</span> <span class='kw'>begin</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='ivar'>@access_token</span><span class='period'>.</span><span class='id post'>post</span><span class='lparen'>(</span><span class='id url'>url</span><span class='op'>+</span><span class='id param_s'>param_s</span><span class='rparen'>)</span><span class='period'>.</span><span class='id body'>body</span> - <span class='kw'>rescue</span> <span class='op'>=&gt;</span> <span class='id vars'>vars</span> - <span class='id raise'>raise</span> <span class='const'>NetworkError</span><span class='comma'>,</span> <span class='id vars'>vars</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='ivar'>@access_token</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='op'>+</span><span class='id identifier rubyid_param_s'>param_s</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span> + <span class='kw'>rescue</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_vars'>vars</span> + <span class='id identifier rubyid_raise'>raise</span> <span class='const'>NetworkError</span><span class='comma'>,</span> <span class='id identifier rubyid_vars'>vars</span> <span class='kw'>end</span> - <span class='kw'>return</span> <span class='const'>JSON</span><span class='period'>.</span><span class='id parse'>parse</span><span class='lparen'>(</span><span class='id response'>response</span><span class='rparen'>)</span> + <span class='kw'>return</span> <span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_response'>response</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -2675,13 +2671,13 @@ 15</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/account.rb', line 12</span> -<span class='kw'>def</span> <span class='id rate_limit'>rate_limit</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/account/rate_limit_status.json</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> - <span class='kw'>return</span> <span class='id response'>response</span> +<span class='kw'>def</span> <span class='id identifier rubyid_rate_limit'>rate_limit</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/account/rate_limit_status.json</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> + <span class='kw'>return</span> <span class='id identifier rubyid_response'>response</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -2707,15 +2703,15 @@ 67</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/statuses.rb', line 62</span> -<span class='kw'>def</span> <span class='id show_status'>show_status</span> <span class='id status_id'>status_id</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='ivar'>@access_token</span><span class='period'>.</span><span class='id get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/statuses/show/</span><span class='embexpr_beg'>#{</span><span class='id status_id'>status_id</span><span class='rbrace'>}</span><span class='tstring_content'>.json</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id body'>body</span> - <span class='kw'>return</span> <span class='id response'>response</span> - <span class='id status'>status</span> <span class='op'>=</span> <span class='const'>Status</span><span class='period'>.</span><span class='id new'>new</span> <span class='id response'>response</span> - <span class='kw'>return</span> <span class='id status'>status</span> +<span class='kw'>def</span> <span class='id identifier rubyid_show_status'>show_status</span> <span class='id identifier rubyid_status_id'>status_id</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='ivar'>@access_token</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/statuses/show/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_status_id'>status_id</span><span class='rbrace'>}</span><span class='tstring_content'>.json</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span> + <span class='kw'>return</span> <span class='id identifier rubyid_response'>response</span> + <span class='id identifier rubyid_status'>status</span> <span class='op'>=</span> <span class='const'>Status</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_response'>response</span> + <span class='kw'>return</span> <span class='id identifier rubyid_status'>status</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -2800,20 +2796,20 @@ 32</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/blocks.rb', line 20</span> -<span class='kw'>def</span> <span class='id unblock'>unblock</span> <span class='id param'>param</span> - <span class='kw'>case</span> <span class='id param'>param</span><span class='period'>.</span><span class='id keys'>keys</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id to_sym'>to_sym</span> +<span class='kw'>def</span> <span class='id identifier rubyid_unblock'>unblock</span> <span class='id identifier rubyid_param'>param</span> + <span class='kw'>case</span> <span class='id identifier rubyid_param'>param</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span> <span class='kw'>when</span> <span class='symbol'>:screen_name</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/blocks/destroy.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='symbol'>:screen_name</span> <span class='op'>=&gt;</span> <span class='id param'>param</span><span class='period'>.</span><span class='id values'>values</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/blocks/destroy.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='symbol'>:screen_name</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_param'>param</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>when</span> <span class='symbol'>:id</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/blocks/destroy.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='symbol'>:user_id</span> <span class='op'>=&gt;</span> <span class='id param'>param</span><span class='period'>.</span><span class='id values'>values</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/blocks/destroy.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='symbol'>:user_id</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_param'>param</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>end</span> - <span class='kw'>if</span> <span class='id response'>response</span><span class='period'>.</span><span class='id class'>class</span> <span class='op'>==</span> <span class='const'>Hash</span> <span class='op'>&amp;&amp;</span> <span class='id response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>id</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> - <span class='kw'>return</span> <span class='const'>User</span><span class='period'>.</span><span class='id new'>new</span> <span class='id response'>response</span> + <span class='kw'>if</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>==</span> <span class='const'>Hash</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>id</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> + <span class='kw'>return</span> <span class='const'>User</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_response'>response</span> <span class='kw'>end</span> <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>end</span></pre> </td> </tr> @@ -2900,20 +2896,20 @@ 69</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/friendships.rb', line 57</span> -<span class='kw'>def</span> <span class='id unfollow'>unfollow</span> <span class='id param'>param</span> - <span class='kw'>case</span> <span class='id param'>param</span><span class='period'>.</span><span class='id keys'>keys</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id to_sym'>to_sym</span> +<span class='kw'>def</span> <span class='id identifier rubyid_unfollow'>unfollow</span> <span class='id identifier rubyid_param'>param</span> + <span class='kw'>case</span> <span class='id identifier rubyid_param'>param</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span> <span class='kw'>when</span> <span class='symbol'>:screen_name</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/friendships/destroy.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='symbol'>:screen_name</span> <span class='op'>=&gt;</span> <span class='id param'>param</span><span class='period'>.</span><span class='id values'>values</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/friendships/destroy.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='symbol'>:screen_name</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_param'>param</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>when</span> <span class='symbol'>:id</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/friendships/destroy.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='symbol'>:user_id</span> <span class='op'>=&gt;</span> <span class='id param'>param</span><span class='period'>.</span><span class='id values'>values</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/friendships/destroy.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='symbol'>:user_id</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_param'>param</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>end</span> - <span class='kw'>if</span> <span class='id response'>response</span><span class='period'>.</span><span class='id class'>class</span> <span class='op'>==</span> <span class='const'>Hash</span> <span class='op'>&amp;&amp;</span> <span class='id response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>id</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> - <span class='kw'>return</span> <span class='const'>User</span><span class='period'>.</span><span class='id new'>new</span> <span class='id response'>response</span> + <span class='kw'>if</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>==</span> <span class='const'>Hash</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>id</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> + <span class='kw'>return</span> <span class='const'>User</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_response'>response</span> <span class='kw'>end</span> <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>end</span></pre> </td> </tr> @@ -2947,17 +2943,17 @@ 76</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/statuses.rb', line 69</span> -<span class='kw'>def</span> <span class='id update'>update</span><span class='lparen'>(</span><span class='id status'>status</span><span class='comma'>,</span> <span class='id irt'>irt</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id post'>post</span><span class='lparen'>(</span> +<span class='kw'>def</span> <span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span><span class='id identifier rubyid_status'>status</span><span class='comma'>,</span> <span class='id identifier rubyid_irt'>irt</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/statuses/update.json</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'>status</span><span class='tstring_end'>&quot;</span></span><span class='op'>=&gt;</span> <span class='id status'>status</span><span class='comma'>,</span> - <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>in_reply_to_status_id</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='id irt'>irt</span> + <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>status</span><span class='tstring_end'>&quot;</span></span><span class='op'>=&gt;</span> <span class='id identifier rubyid_status'>status</span><span class='comma'>,</span> + <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>in_reply_to_status_id</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_irt'>irt</span> <span class='rparen'>)</span> - <span class='kw'>return</span> <span class='id response'>response</span> + <span class='kw'>return</span> <span class='id identifier rubyid_response'>response</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -3143,24 +3139,24 @@ 50</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/account.rb', line 36</span> -<span class='kw'>def</span> <span class='id update_profile'>update_profile</span> <span class='id param'>param</span> - <span class='kw'>if</span> <span class='id param'>param</span><span class='period'>.</span><span class='id key?'>key?</span> <span class='symbol'>:colors</span> - <span class='id opt'>opt</span> <span class='op'>=</span> <span class='const'>Hash</span><span class='period'>.</span><span class='id new'>new</span> - <span class='id opt'>opt</span><span class='period'>.</span><span class='id update'>update</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='symbol'>:profile_background_color</span> <span class='op'>=&gt;</span> <span class='id param'>param</span><span class='lbracket'>[</span><span class='symbol'>:colors</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:background</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id param'>param</span><span class='lbracket'>[</span><span class='symbol'>:colors</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:background</span><span class='rbracket'>]</span> - <span class='id opt'>opt</span><span class='period'>.</span><span class='id update'>update</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='symbol'>:profile_link_color</span> <span class='op'>=&gt;</span> <span class='id param'>param</span><span class='lbracket'>[</span><span class='symbol'>:colors</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:link</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id param'>param</span><span class='lbracket'>[</span><span class='symbol'>:colors</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:link</span><span class='rbracket'>]</span> - <span class='id opt'>opt</span><span class='period'>.</span><span class='id update'>update</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='symbol'>:profile_sidebar_border</span> <span class='op'>=&gt;</span> <span class='id param'>param</span><span class='lbracket'>[</span><span class='symbol'>:colors</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:sidebar_border</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id param'>param</span><span class='lbracket'>[</span><span class='symbol'>:colors</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:sidebar_border</span><span class='rbracket'>]</span> - <span class='id opt'>opt</span><span class='period'>.</span><span class='id update'>update</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='symbol'>:profile_sidebar_fill</span> <span class='op'>=&gt;</span> <span class='id param'>param</span><span class='lbracket'>[</span><span class='symbol'>:colors</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:sidebar_fill</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id param'>param</span><span class='lbracket'>[</span><span class='symbol'>:colors</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:sidebar_fill</span><span class='rbracket'>]</span> - <span class='id oot'>oot</span><span class='period'>.</span><span class='id update'>update</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='symbol'>:profile_text_color</span> <span class='op'>=&gt;</span> <span class='id param'>param</span><span class='lbracket'>[</span><span class='symbol'>:colors</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:text</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id param'>param</span><span class='lbracket'>[</span><span class='symbol'>:colors</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:text</span><span class='rbracket'>]</span> - <span class='id param'>param</span><span class='period'>.</span><span class='id delete'>delete</span> <span class='symbol'>:colors</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/account/update_profile_colors.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id opt'>opt</span><span class='rparen'>)</span> - <span class='kw'>return</span> <span class='const'>User</span><span class='period'>.</span><span class='id new'>new</span> <span class='id response'>response</span> <span class='kw'>if</span> <span class='id param'>param</span><span class='period'>.</span><span class='id size'>size</span> <span class='op'>&lt;=</span> <span class='int'>0</span> +<span class='kw'>def</span> <span class='id identifier rubyid_update_profile'>update_profile</span> <span class='id identifier rubyid_param'>param</span> + <span class='kw'>if</span> <span class='id identifier rubyid_param'>param</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span> <span class='symbol'>:colors</span> + <span class='id identifier rubyid_opt'>opt</span> <span class='op'>=</span> <span class='const'>Hash</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> + <span class='id identifier rubyid_opt'>opt</span><span class='period'>.</span><span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='symbol'>:profile_background_color</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_param'>param</span><span class='lbracket'>[</span><span class='symbol'>:colors</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:background</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_param'>param</span><span class='lbracket'>[</span><span class='symbol'>:colors</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:background</span><span class='rbracket'>]</span> + <span class='id identifier rubyid_opt'>opt</span><span class='period'>.</span><span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='symbol'>:profile_link_color</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_param'>param</span><span class='lbracket'>[</span><span class='symbol'>:colors</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:link</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_param'>param</span><span class='lbracket'>[</span><span class='symbol'>:colors</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:link</span><span class='rbracket'>]</span> + <span class='id identifier rubyid_opt'>opt</span><span class='period'>.</span><span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='symbol'>:profile_sidebar_border</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_param'>param</span><span class='lbracket'>[</span><span class='symbol'>:colors</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:sidebar_border</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_param'>param</span><span class='lbracket'>[</span><span class='symbol'>:colors</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:sidebar_border</span><span class='rbracket'>]</span> + <span class='id identifier rubyid_opt'>opt</span><span class='period'>.</span><span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='symbol'>:profile_sidebar_fill</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_param'>param</span><span class='lbracket'>[</span><span class='symbol'>:colors</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:sidebar_fill</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_param'>param</span><span class='lbracket'>[</span><span class='symbol'>:colors</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:sidebar_fill</span><span class='rbracket'>]</span> + <span class='id identifier rubyid_oot'>oot</span><span class='period'>.</span><span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='symbol'>:profile_text_color</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_param'>param</span><span class='lbracket'>[</span><span class='symbol'>:colors</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:text</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_param'>param</span><span class='lbracket'>[</span><span class='symbol'>:colors</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:text</span><span class='rbracket'>]</span> + <span class='id identifier rubyid_param'>param</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span> <span class='symbol'>:colors</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/account/update_profile_colors.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_opt'>opt</span><span class='rparen'>)</span> + <span class='kw'>return</span> <span class='const'>User</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_response'>response</span> <span class='kw'>if</span> <span class='id identifier rubyid_param'>param</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span> <span class='op'>&lt;=</span> <span class='int'>0</span> <span class='kw'>end</span> - <span class='id response2'>response2</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/account/update_profile.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id param'>param</span><span class='rparen'>)</span> - <span class='kw'>return</span> <span class='const'>User</span><span class='period'>.</span><span class='id new'>new</span> <span class='id response2'>response2</span> + <span class='id identifier rubyid_response2'>response2</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/account/update_profile.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_param'>param</span><span class='rparen'>)</span> + <span class='kw'>return</span> <span class='const'>User</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_response2'>response2</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -3185,13 +3181,13 @@ <div class="examples"> <h3>Examples:</h3> <h4><div class='inline'></div></h4> - <pre class="example code"><span class='id twitter'>twitter</span> <span class='op'>=</span> <span class='const'>Pupil</span><span class='period'>.</span><span class='id new'>new</span> <span class='const'>PUPIL_KEY</span> -<span class='id twitter'>twitter</span><span class='period'>.</span><span class='id user_timeline'>user_timeline</span><span class='lparen'>(</span><span class='symbol'>:screen_name</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>o_ame</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:exclude</span> <span class='op'>=&gt;</span> <span class='symbol'>:replies</span><span class='rparen'>)</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id status'>status</span><span class='op'>|</span> - <span class='id puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id status'>status</span><span class='period'>.</span><span class='id user'>user</span><span class='period'>.</span><span class='id screen_name'>screen_name</span><span class='rbrace'>}</span><span class='tstring_content'>: </span><span class='embexpr_beg'>#{</span><span class='id status'>status</span><span class='period'>.</span><span class='id text'>text</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span> + <pre class="example code"><span class='id identifier rubyid_twitter'>twitter</span> <span class='op'>=</span> <span class='const'>Pupil</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='const'>PUPIL_KEY</span> +<span class='id identifier rubyid_twitter'>twitter</span><span class='period'>.</span><span class='id identifier rubyid_user_timeline'>user_timeline</span><span class='lparen'>(</span><span class='symbol'>:screen_name</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>o_ame</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:exclude</span> <span class='op'>=&gt;</span> <span class='symbol'>:replies</span><span class='rparen'>)</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_status'>status</span><span class='op'>|</span> + <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_status'>status</span><span class='period'>.</span><span class='id identifier rubyid_user'>user</span><span class='period'>.</span><span class='id identifier rubyid_screen_name'>screen_name</span><span class='rbrace'>}</span><span class='tstring_content'>: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_status'>status</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>end</span></pre> </div> <h3>Parameters:</h3> <ul class="param"> @@ -3362,18 +3358,18 @@ 60</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/statuses.rb', line 52</span> -<span class='kw'>def</span> <span class='id user_timeline'>user_timeline</span> <span class='id param'>param</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/statuses/user_timeline.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id param'>param</span><span class='rparen'>)</span> - <span class='id statuses'>statuses</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id new'>new</span> - <span class='id response'>response</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id element'>element</span><span class='op'>|</span> - <span class='id status'>status</span> <span class='op'>=</span> <span class='const'>Status</span><span class='period'>.</span><span class='id new'>new</span> <span class='id element'>element</span> - <span class='id statuses'>statuses</span> <span class='op'>&lt;&lt;</span> <span class='id status'>status</span> +<span class='kw'>def</span> <span class='id identifier rubyid_user_timeline'>user_timeline</span> <span class='id identifier rubyid_param'>param</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/statuses/user_timeline.json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_param'>param</span><span class='rparen'>)</span> + <span class='id identifier rubyid_statuses'>statuses</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> + <span class='id identifier rubyid_response'>response</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_element'>element</span><span class='op'>|</span> + <span class='id identifier rubyid_status'>status</span> <span class='op'>=</span> <span class='const'>Status</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_element'>element</span> + <span class='id identifier rubyid_statuses'>statuses</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_status'>status</span> <span class='kw'>end</span> - <span class='kw'>return</span> <span class='id statuses'>statuses</span> + <span class='kw'>return</span> <span class='id identifier rubyid_statuses'>statuses</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -3429,14 +3425,14 @@ 8</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/pupil/account.rb', line 4</span> -<span class='kw'>def</span> <span class='id verify_credentials'>verify_credentials</span> - <span class='id response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/account/verify_credentials.json</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> - <span class='id user'>user</span> <span class='op'>=</span> <span class='const'>User</span><span class='period'>.</span><span class='id new'>new</span> <span class='id response'>response</span> - <span class='kw'>return</span> <span class='id user'>user</span> +<span class='kw'>def</span> <span class='id identifier rubyid_verify_credentials'>verify_credentials</span> + <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/account/verify_credentials.json</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> + <span class='id identifier rubyid_user'>user</span> <span class='op'>=</span> <span class='const'>User</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_response'>response</span> + <span class='kw'>return</span> <span class='id identifier rubyid_user'>user</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -3444,12 +3440,12 @@ </div> </div> <div id="footer"> - Generated on Fri Dec 16 17:19:17 2011 by + Generated on Sat Dec 17 20:58:32 2011 by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> - 0.7.3 (ruby-1.9.2). + 0.7.4 (ruby-1.9.2). </div> </body> </html> \ No newline at end of file