pupil 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,12 @@
1
+ 0.1.2
2
+ ----------------
3
+
4
+ * Added new classes,
5
+ Pupil::Stream::Status and Pupil::Stream::Shash
6
+ * Pupil::Stream#start returned only Pupil::Stream::Status or Pupil::Stream::Shash
7
+ * They have "event" variable that show type of event uniformly
8
+
9
+ 0.1.1
10
+ ----------------
11
+
12
+ * First release
@@ -0,0 +1,113 @@
1
+ pupil
2
+ =============
3
+
4
+ Pupil is "Lazy" Twitter API Library for Ruby 1.9.x.
5
+ Easy to use.
6
+
7
+ Features / Problems
8
+ -------------
9
+
10
+ * Almost Twitter REST API are wrapped. However, some API does not support yet.
11
+ * Twitter Streaming API are supported experimentally.
12
+ * Intuitive syntax.
13
+
14
+ Requirement
15
+ -------------
16
+
17
+ * json and oauth gem
18
+ * Ruby 1.9.x
19
+
20
+ Installation
21
+ -------------
22
+
23
+ gem install pupil
24
+
25
+ Examples
26
+ -------------
27
+ require "pupil"
28
+
29
+ CONSUMER = {
30
+ :app_name => "Web Service", # Optional
31
+ :app_author => "o_ame", # Optional
32
+ :consumer_key => "something", # Required
33
+ :consumer_secret => "something" # Required
34
+ }
35
+
36
+ pupil_key = {
37
+ :screen_name => "o_ame", # Required
38
+ :access_token => "something", # Required
39
+ :access_token_secret => "something" # Required
40
+ }.update CONSUMER
41
+
42
+ pupil = Pupil.new pupil_key
43
+
44
+ # Get timeline statuses without replies
45
+ pupil.home_timeline :count => 50, :exclude => :replies
46
+
47
+ # Follow User
48
+ pupil.follow :screen_name => :twitterapi
49
+
50
+ # Update URL on profile
51
+ pupil.update_profile :url => "http://oameya.com"
52
+
53
+ Using Streaming API
54
+
55
+ require "pupil/stream"
56
+
57
+ CONSUMER = {
58
+ :app_name => "Web Service",
59
+ :app_author => "o_ame",
60
+ :consumer_key => "something",
61
+ :consumer_secret => "something"
62
+ }
63
+
64
+ pupil_key = {
65
+ :screen_name => "o_ame",
66
+ :access_token => "something",
67
+ :access_token_secret => "something"
68
+ }.update CONSUMER
69
+
70
+ stream = Pupil::Stream.new pupil_key
71
+
72
+ # Userstream
73
+ stream.start :userstream do |status|
74
+ puts status.type #=> Show type of status
75
+ if status.type == :retweeted
76
+ puts "#{status.content['user']['screen_name']: #{status.content['text']}"
77
+ end
78
+ end
79
+
80
+ # Search stream
81
+ stream.start :filter, :track => "#MerryChristmas" do |status|
82
+ puts "#{status['user']['screen_name']: #{status['text']}"
83
+ end
84
+
85
+ Making `pupil_key`
86
+
87
+ require "pupil/keygen"
88
+
89
+ keygen = Pupil::Keygen.new
90
+ keygen.interactive #=> Generate pupil_key interactively
91
+
92
+ Contributing to pupil
93
+ -------------
94
+
95
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
96
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
97
+ * Fork the project
98
+ * Start a feature/bugfix branch
99
+ * Commit and push until you are happy with your contribution
100
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
101
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
102
+
103
+ Credits
104
+ -------------
105
+
106
+ Developer: [Oame](http://twitter.com/o_ame)
107
+
108
+ License
109
+ -------------
110
+
111
+ Copyright (c) 2011 Oame. See LICENSE.txt for
112
+ further details.
113
+
data/Rakefile CHANGED
@@ -21,6 +21,7 @@ Jeweler::Tasks.new do |gem|
21
21
  gem.description = %Q{The "Lazy" Twitter API Library for Ruby 1.9.x. Easy to use.}
22
22
  gem.email = "oame@oameya.com"
23
23
  gem.authors = ["Oame"]
24
+ gem.required_ruby_version = '~>1.9.0'
24
25
  # dependencies defined in Gemfile
25
26
  end
26
27
  Jeweler::RubygemsDotOrgTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Pupil
8
8
 
9
- &mdash; Documentation by YARD 0.7.3
9
+ &mdash; Documentation by YARD 0.7.4
10
10
 
11
11
  </title>
12
12
 
@@ -925,27 +925,23 @@ A new instance of Pupil
925
925
  25
926
926
  26
927
927
  27
928
- 28
929
- 29
930
- 30</pre>
928
+ 28</pre>
931
929
  </td>
932
930
  <td>
933
931
  <pre class="code"><span class="info file"># File 'lib/pupil/base.rb', line 15</span>
934
932
 
935
- <span class='kw'>def</span> <span class='id initialize'>initialize</span> <span class='id key'>key</span>
936
- <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>
937
- <span class='ivar'>@client</span> <span class='op'>=</span> <span class='kw'>nil</span>
938
- <span class='ivar'>@config</span> <span class='op'>=</span> <span class='kw'>nil</span>
933
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='id identifier rubyid_key'>key</span>
934
+ <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>
939
935
 
940
- <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>
941
- <span class='id key'>key</span><span class='lbracket'>[</span><span class='symbol'>:consumer_key</span><span class='rbracket'>]</span><span class='comma'>,</span>
942
- <span class='id key'>key</span><span class='lbracket'>[</span><span class='symbol'>:consumer_secret</span><span class='rbracket'>]</span><span class='comma'>,</span>
936
+ <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>
937
+ <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>
938
+ <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>
943
939
  <span class='symbol'>:site</span> <span class='op'>=&gt;</span> <span class='const'>TWITTER_API_URL</span>
944
940
  <span class='rparen'>)</span>
945
- <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>
941
+ <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>
946
942
  <span class='ivar'>@consumer</span><span class='comma'>,</span>
947
- <span class='id key'>key</span><span class='lbracket'>[</span><span class='symbol'>:access_token</span><span class='rbracket'>]</span><span class='comma'>,</span>
948
- <span class='id key'>key</span><span class='lbracket'>[</span><span class='symbol'>:access_token_secret</span><span class='rbracket'>]</span>
943
+ <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>
944
+ <span class='id identifier rubyid_key'>key</span><span class='lbracket'>[</span><span class='symbol'>:access_token_secret</span><span class='rbracket'>]</span>
949
945
  <span class='rparen'>)</span>
950
946
  <span class='kw'>end</span></pre>
951
947
  </td>
@@ -993,7 +989,7 @@ Returns the value of attribute screen_name
993
989
  <td>
994
990
  <pre class="code"><span class="info file"># File 'lib/pupil/base.rb', line 8</span>
995
991
 
996
- <span class='kw'>def</span> <span class='id screen_name'>screen_name</span>
992
+ <span class='kw'>def</span> <span class='id identifier rubyid_screen_name'>screen_name</span>
997
993
  <span class='ivar'>@screen_name</span>
998
994
  <span class='kw'>end</span></pre>
999
995
  </td>
@@ -1067,6 +1063,8 @@ URL Serialized parameters
1067
1063
  <pre class="lines">
1068
1064
 
1069
1065
 
1066
+ 32
1067
+ 33
1070
1068
  34
1071
1069
  35
1072
1070
  36
@@ -1095,43 +1093,41 @@ URL Serialized parameters
1095
1093
  59
1096
1094
  60
1097
1095
  61
1098
- 62
1099
- 63
1100
- 64</pre>
1096
+ 62</pre>
1101
1097
  </td>
1102
1098
  <td>
1103
- <pre class="code"><span class="info file"># File 'lib/pupil/base.rb', line 34</span>
1099
+ <pre class="code"><span class="info file"># File 'lib/pupil/base.rb', line 32</span>
1104
1100
 
1105
- <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>
1106
- <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>
1107
- <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>
1108
- <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>
1109
- <span class='kw'>case</span> <span class='id key'>key</span><span class='period'>.</span><span class='id to_sym'>to_sym</span>
1101
+ <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>
1102
+ <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>
1103
+ <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>
1104
+ <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>
1105
+ <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>
1110
1106
  <span class='kw'>when</span> <span class='symbol'>:include</span>
1111
- <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>
1112
- <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>
1107
+ <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>
1108
+ <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>
1113
1109
  <span class='kw'>break</span>
1114
1110
  <span class='kw'>end</span>
1115
1111
 
1116
- <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>
1117
- <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>
1118
- <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>
1112
+ <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>
1113
+ <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>
1114
+ <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>
1119
1115
  <span class='kw'>end</span>
1120
1116
  <span class='kw'>when</span> <span class='symbol'>:exclude</span>
1121
- <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>
1122
- <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>
1117
+ <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>
1118
+ <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>
1123
1119
  <span class='kw'>break</span>
1124
1120
  <span class='kw'>end</span>
1125
1121
 
1126
- <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>
1127
- <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>
1122
+ <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>
1123
+ <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>
1128
1124
  <span class='kw'>end</span>
1129
1125
  <span class='kw'>else</span>
1130
- <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>
1126
+ <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>
1131
1127
  <span class='kw'>end</span>
1132
1128
  <span class='kw'>end</span>
1133
- <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>
1134
- <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>
1129
+ <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>
1130
+ <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>
1135
1131
  <span class='kw'>end</span></pre>
1136
1132
  </td>
1137
1133
  </tr>
@@ -1234,9 +1230,9 @@ response
1234
1230
  <td>
1235
1231
  <pre class="code"><span class="info file"># File 'lib/pupil/lists.rb', line 5</span>
1236
1232
 
1237
- <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>
1238
- <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>
1239
- <span class='kw'>return</span> <span class='id response'>response</span>
1233
+ <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>
1234
+ <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>
1235
+ <span class='kw'>return</span> <span class='id identifier rubyid_response'>response</span>
1240
1236
  <span class='kw'>end</span></pre>
1241
1237
  </td>
1242
1238
  </tr>
@@ -1325,16 +1321,16 @@ response
1325
1321
  <td>
1326
1322
  <pre class="code"><span class="info file"># File 'lib/pupil/blocks.rb', line 4</span>
1327
1323
 
1328
- <span class='kw'>def</span> <span class='id block'>block</span> <span class='id param'>param</span>
1329
- <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>
1324
+ <span class='kw'>def</span> <span class='id identifier rubyid_block'>block</span> <span class='id identifier rubyid_param'>param</span>
1325
+ <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>
1330
1326
  <span class='kw'>when</span> <span class='symbol'>:screen_name</span>
1331
- <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>
1327
+ <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>
1332
1328
  <span class='kw'>when</span> <span class='symbol'>:id</span>
1333
- <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>
1329
+ <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>
1334
1330
  <span class='kw'>end</span>
1335
1331
 
1336
- <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>
1337
- <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>
1332
+ <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>
1333
+ <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>
1338
1334
  <span class='kw'>end</span>
1339
1335
  <span class='kw'>return</span> <span class='kw'>false</span>
1340
1336
  <span class='kw'>end</span></pre>
@@ -1400,14 +1396,14 @@ list of blocking users
1400
1396
  <td>
1401
1397
  <pre class="code"><span class="info file"># File 'lib/pupil/blocks.rb', line 35</span>
1402
1398
 
1403
- <span class='kw'>def</span> <span class='id blocking'>blocking</span>
1404
- <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>
1405
- <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>
1406
- <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>
1407
- <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>
1408
- <span class='id users'>users</span> <span class='op'>&lt;&lt;</span> <span class='id user'>user</span>
1399
+ <span class='kw'>def</span> <span class='id identifier rubyid_blocking'>blocking</span>
1400
+ <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>
1401
+ <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>
1402
+ <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>
1403
+ <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>
1404
+ <span class='id identifier rubyid_users'>users</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_user'>user</span>
1409
1405
  <span class='kw'>end</span>
1410
- <span class='kw'>return</span> <span class='id users'>users</span>
1406
+ <span class='kw'>return</span> <span class='id identifier rubyid_users'>users</span>
1411
1407
  <span class='kw'>end</span></pre>
1412
1408
  </td>
1413
1409
  </tr>
@@ -1435,9 +1431,9 @@ list of blocking users
1435
1431
  <td>
1436
1432
  <pre class="code"><span class="info file"># File 'lib/pupil/statuses.rb', line 80</span>
1437
1433
 
1438
- <span class='kw'>def</span> <span class='id destroy'>destroy</span> <span class='id status_id'>status_id</span>
1439
- <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>
1440
- <span class='kw'>return</span> <span class='id response'>response</span>
1434
+ <span class='kw'>def</span> <span class='id identifier rubyid_destroy'>destroy</span> <span class='id identifier rubyid_status_id'>status_id</span>
1435
+ <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>
1436
+ <span class='kw'>return</span> <span class='id identifier rubyid_response'>response</span>
1441
1437
  <span class='kw'>end</span></pre>
1442
1438
  </td>
1443
1439
  </tr>
@@ -1527,23 +1523,23 @@ directmessages
1527
1523
  <td>
1528
1524
  <pre class="code"><span class="info file"># File 'lib/pupil/direct_messages.rb', line 5</span>
1529
1525
 
1530
- <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>
1531
- <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>
1526
+ <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>
1527
+ <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>
1532
1528
  <span class='kw'>begin</span>
1533
- <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>
1529
+ <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>
1534
1530
  <span class='kw'>rescue</span>
1535
1531
  <span class='kw'>return</span> <span class='kw'>false</span>
1536
1532
  <span class='kw'>end</span>
1537
- <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>
1538
- <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>
1539
- <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>
1533
+ <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>
1534
+ <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>
1535
+ <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>
1540
1536
 
1541
- <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>
1542
- <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>
1543
- <span class='id directmessages'>directmessages</span> <span class='op'>&lt;&lt;</span> <span class='id dm'>dm</span>
1537
+ <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>
1538
+ <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>
1539
+ <span class='id identifier rubyid_directmessages'>directmessages</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_dm'>dm</span>
1544
1540
  <span class='rbrace'>}</span>
1545
1541
 
1546
- <span class='kw'>return</span> <span class='id directmessages'>directmessages</span>
1542
+ <span class='kw'>return</span> <span class='id identifier rubyid_directmessages'>directmessages</span>
1547
1543
  <span class='kw'>end</span></pre>
1548
1544
  </td>
1549
1545
  </tr>
@@ -1627,13 +1623,13 @@ response
1627
1623
  <td>
1628
1624
  <pre class="code"><span class="info file"># File 'lib/pupil/direct_messages.rb', line 49</span>
1629
1625
 
1630
- <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>
1626
+ <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>
1631
1627
  <span class='kw'>begin</span>
1632
- <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>
1628
+ <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>
1633
1629
  <span class='kw'>rescue</span>
1634
1630
  <span class='kw'>return</span> <span class='kw'>false</span>
1635
1631
  <span class='kw'>end</span>
1636
- <span class='kw'>return</span> <span class='id response'>response</span>
1632
+ <span class='kw'>return</span> <span class='id identifier rubyid_response'>response</span>
1637
1633
  <span class='kw'>end</span></pre>
1638
1634
  </td>
1639
1635
  </tr>
@@ -1723,23 +1719,23 @@ directmessage you sent
1723
1719
  <td>
1724
1720
  <pre class="code"><span class="info file"># File 'lib/pupil/direct_messages.rb', line 27</span>
1725
1721
 
1726
- <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>
1727
- <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>
1722
+ <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>
1723
+ <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>
1728
1724
  <span class='kw'>begin</span>
1729
- <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>
1725
+ <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>
1730
1726
  <span class='kw'>rescue</span>
1731
1727
  <span class='kw'>return</span> <span class='kw'>false</span>
1732
1728
  <span class='kw'>end</span>
1733
- <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>
1734
- <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>
1735
- <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>
1729
+ <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>
1730
+ <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>
1731
+ <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>
1736
1732
 
1737
- <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>
1738
- <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>
1739
- <span class='id directmessages'>directmessages</span> <span class='op'>&lt;&lt;</span> <span class='id dm'>dm</span>
1733
+ <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>
1734
+ <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>
1735
+ <span class='id identifier rubyid_directmessages'>directmessages</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_dm'>dm</span>
1740
1736
  <span class='rbrace'>}</span>
1741
1737
 
1742
- <span class='kw'>return</span> <span class='id directmessages'>directmessages</span>
1738
+ <span class='kw'>return</span> <span class='id identifier rubyid_directmessages'>directmessages</span>
1743
1739
  <span class='kw'>end</span></pre>
1744
1740
  </td>
1745
1741
  </tr>
@@ -1798,9 +1794,9 @@ Result
1798
1794
  <td>
1799
1795
  <pre class="code"><span class="info file"># File 'lib/pupil/account.rb', line 19</span>
1800
1796
 
1801
- <span class='kw'>def</span> <span class='id end_session'>end_session</span>
1802
- <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>
1803
- <span class='kw'>return</span> <span class='id response'>response</span>
1797
+ <span class='kw'>def</span> <span class='id identifier rubyid_end_session'>end_session</span>
1798
+ <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>
1799
+ <span class='kw'>return</span> <span class='id identifier rubyid_response'>response</span>
1804
1800
  <span class='kw'>end</span></pre>
1805
1801
  </td>
1806
1802
  </tr>
@@ -1889,16 +1885,16 @@ response
1889
1885
  <td>
1890
1886
  <pre class="code"><span class="info file"># File 'lib/pupil/friendships.rb', line 40</span>
1891
1887
 
1892
- <span class='kw'>def</span> <span class='id follow'>follow</span> <span class='id param'>param</span>
1893
- <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>
1888
+ <span class='kw'>def</span> <span class='id identifier rubyid_follow'>follow</span> <span class='id identifier rubyid_param'>param</span>
1889
+ <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>
1894
1890
  <span class='kw'>when</span> <span class='symbol'>:screen_name</span>
1895
- <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>
1891
+ <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>
1896
1892
  <span class='kw'>when</span> <span class='symbol'>:id</span>
1897
- <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>
1893
+ <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>
1898
1894
  <span class='kw'>end</span>
1899
1895
 
1900
- <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>
1901
- <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>
1896
+ <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>
1897
+ <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>
1902
1898
  <span class='kw'>end</span>
1903
1899
  <span class='kw'>return</span> <span class='kw'>false</span>
1904
1900
  <span class='kw'>end</span></pre>
@@ -1932,13 +1928,13 @@ response
1932
1928
  <td>
1933
1929
  <pre class="code"><span class="info file"># File 'lib/pupil/friendships.rb', line 11</span>
1934
1930
 
1935
- <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>
1936
- <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>
1937
- <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>
1938
- <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>
1939
- <span class='id ids'>ids</span> <span class='op'>&lt;&lt;</span> <span class='id element'>element</span>
1931
+ <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>
1932
+ <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>
1933
+ <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>
1934
+ <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>
1935
+ <span class='id identifier rubyid_ids'>ids</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_element'>element</span>
1940
1936
  <span class='kw'>end</span>
1941
- <span class='kw'>return</span> <span class='id ids'>ids</span>
1937
+ <span class='kw'>return</span> <span class='id identifier rubyid_ids'>ids</span>
1942
1938
  <span class='kw'>end</span></pre>
1943
1939
  </td>
1944
1940
  </tr>
@@ -1970,13 +1966,13 @@ response
1970
1966
  <td>
1971
1967
  <pre class="code"><span class="info file"># File 'lib/pupil/friendships.rb', line 2</span>
1972
1968
 
1973
- <span class='kw'>def</span> <span class='id friends_ids'>friends_ids</span> <span class='id name'>name</span>
1974
- <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>
1975
- <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>
1976
- <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>
1977
- <span class='id ids'>ids</span> <span class='op'>&lt;&lt;</span> <span class='id element'>element</span>
1969
+ <span class='kw'>def</span> <span class='id identifier rubyid_friends_ids'>friends_ids</span> <span class='id identifier rubyid_name'>name</span>
1970
+ <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>
1971
+ <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>
1972
+ <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>
1973
+ <span class='id identifier rubyid_ids'>ids</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_element'>element</span>
1978
1974
  <span class='kw'>end</span>
1979
- <span class='kw'>return</span> <span class='id ids'>ids</span>
1975
+ <span class='kw'>return</span> <span class='id identifier rubyid_ids'>ids</span>
1980
1976
  <span class='kw'>end</span></pre>
1981
1977
  </td>
1982
1978
  </tr>
@@ -2082,10 +2078,10 @@ return true if paired users have friendship, or ruturn false
2082
2078
  <td>
2083
2079
  <pre class="code"><span class="info file"># File 'lib/pupil/friendships.rb', line 24</span>
2084
2080
 
2085
- <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>
2086
- <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>
2087
- <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>
2088
- <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>
2081
+ <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>
2082
+ <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>
2083
+ <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>
2084
+ <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>
2089
2085
  <span class='kw'>return</span> <span class='kw'>true</span>
2090
2086
  <span class='kw'>else</span>
2091
2087
  <span class='kw'>return</span> <span class='kw'>false</span>
@@ -2109,27 +2105,27 @@ return true if paired users have friendship, or ruturn false
2109
2105
  <pre class="lines">
2110
2106
 
2111
2107
 
2108
+ 68
2109
+ 69
2112
2110
  70
2113
2111
  71
2114
2112
  72
2115
2113
  73
2116
2114
  74
2117
2115
  75
2118
- 76
2119
- 77
2120
- 78</pre>
2116
+ 76</pre>
2121
2117
  </td>
2122
2118
  <td>
2123
- <pre class="code"><span class="info file"># File 'lib/pupil/base.rb', line 70</span>
2119
+ <pre class="code"><span class="info file"># File 'lib/pupil/base.rb', line 68</span>
2124
2120
 
2125
- <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>
2126
- <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>
2121
+ <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>
2122
+ <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>
2127
2123
  <span class='kw'>begin</span>
2128
- <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>
2129
- <span class='kw'>rescue</span> <span class='op'>=&gt;</span> <span class='id vars'>vars</span>
2130
- <span class='id raise'>raise</span> <span class='const'>NetworkError</span><span class='comma'>,</span> <span class='id vars'>vars</span>
2124
+ <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>
2125
+ <span class='kw'>rescue</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_vars'>vars</span>
2126
+ <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>
2131
2127
  <span class='kw'>end</span>
2132
- <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>
2128
+ <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>
2133
2129
  <span class='kw'>end</span></pre>
2134
2130
  </td>
2135
2131
  </tr>
@@ -2300,14 +2296,14 @@ Timeline
2300
2296
  <td>
2301
2297
  <pre class="code"><span class="info file"># File 'lib/pupil/statuses.rb', line 12</span>
2302
2298
 
2303
- <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>
2304
- <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>
2305
- <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>
2306
- <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>
2307
- <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>
2308
- <span class='id statuses'>statuses</span> <span class='op'>&lt;&lt;</span> <span class='id status'>status</span>
2299
+ <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>
2300
+ <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>
2301
+ <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>
2302
+ <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>
2303
+ <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>
2304
+ <span class='id identifier rubyid_statuses'>statuses</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_status'>status</span>
2309
2305
  <span class='kw'>end</span>
2310
- <span class='kw'>return</span> <span class='id statuses'>statuses</span>
2306
+ <span class='kw'>return</span> <span class='id identifier rubyid_statuses'>statuses</span>
2311
2307
  <span class='kw'>end</span></pre>
2312
2308
  </td>
2313
2309
  </tr>
@@ -2373,16 +2369,16 @@ lists
2373
2369
  <td>
2374
2370
  <pre class="code"><span class="info file"># File 'lib/pupil/lists.rb', line 11</span>
2375
2371
 
2376
- <span class='kw'>def</span> <span class='id lists'>lists</span>
2377
- <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>
2378
- <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>
2379
- <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>
2380
- <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>
2381
- <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>
2382
- <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>
2383
- <span class='id lists'>lists</span> <span class='op'>&lt;&lt;</span> <span class='id list'>list</span>
2372
+ <span class='kw'>def</span> <span class='id identifier rubyid_lists'>lists</span>
2373
+ <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>
2374
+ <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>
2375
+ <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>
2376
+ <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>
2377
+ <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>
2378
+ <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>
2379
+ <span class='id identifier rubyid_lists'>lists</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_list'>list</span>
2384
2380
  <span class='rbrace'>}</span>
2385
- <span class='kw'>return</span> <span class='id lists'>lists</span>
2381
+ <span class='kw'>return</span> <span class='id identifier rubyid_lists'>lists</span>
2386
2382
  <span class='kw'>end</span></pre>
2387
2383
  </td>
2388
2384
  </tr>
@@ -2415,13 +2411,13 @@ lists
2415
2411
  <td>
2416
2412
  <pre class="code"><span class="info file"># File 'lib/pupil/lists.rb', line 23</span>
2417
2413
 
2418
- <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>
2414
+ <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>
2419
2415
  <span class='kw'>begin</span>
2420
- <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>
2416
+ <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>
2421
2417
  <span class='kw'>rescue</span>
2422
2418
  <span class='kw'>return</span> <span class='kw'>false</span>
2423
2419
  <span class='kw'>else</span>
2424
- <span class='kw'>return</span> <span class='id response'>response</span>
2420
+ <span class='kw'>return</span> <span class='id identifier rubyid_response'>response</span>
2425
2421
  <span class='kw'>end</span>
2426
2422
  <span class='kw'>end</span></pre>
2427
2423
  </td>
@@ -2455,14 +2451,14 @@ lists
2455
2451
  <td>
2456
2452
  <pre class="code"><span class="info file"># File 'lib/pupil/users.rb', line 2</span>
2457
2453
 
2458
- <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>
2459
- <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>
2460
- <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>
2461
- <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>
2462
- <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>
2463
- <span class='id users'>users</span> <span class='op'>&lt;&lt;</span> <span class='id user'>user</span>
2454
+ <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>
2455
+ <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>
2456
+ <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>
2457
+ <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>
2458
+ <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>
2459
+ <span class='id identifier rubyid_users'>users</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_user'>user</span>
2464
2460
  <span class='kw'>end</span>
2465
- <span class='kw'>return</span> <span class='id users'>users</span>
2461
+ <span class='kw'>return</span> <span class='id identifier rubyid_users'>users</span>
2466
2462
  <span class='kw'>end</span></pre>
2467
2463
  </td>
2468
2464
  </tr>
@@ -2543,14 +2539,14 @@ mention
2543
2539
  <td>
2544
2540
  <pre class="code"><span class="info file"># File 'lib/pupil/statuses.rb', line 24</span>
2545
2541
 
2546
- <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>
2547
- <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>
2548
- <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>
2549
- <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>
2550
- <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>
2551
- <span class='id statuses'>statuses</span> <span class='op'>&lt;&lt;</span> <span class='id status'>status</span>
2542
+ <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>
2543
+ <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>
2544
+ <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>
2545
+ <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>
2546
+ <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>
2547
+ <span class='id identifier rubyid_statuses'>statuses</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_status'>status</span>
2552
2548
  <span class='kw'>end</span>
2553
- <span class='kw'>return</span> <span class='id statuses'>statuses</span>
2549
+ <span class='kw'>return</span> <span class='id identifier rubyid_statuses'>statuses</span>
2554
2550
  <span class='kw'>end</span></pre>
2555
2551
  </td>
2556
2552
  </tr>
@@ -2570,15 +2566,15 @@ mention
2570
2566
  <pre class="lines">
2571
2567
 
2572
2568
 
2573
- 66
2574
- 67
2575
- 68</pre>
2569
+ 64
2570
+ 65
2571
+ 66</pre>
2576
2572
  </td>
2577
2573
  <td>
2578
- <pre class="code"><span class="info file"># File 'lib/pupil/base.rb', line 66</span>
2574
+ <pre class="code"><span class="info file"># File 'lib/pupil/base.rb', line 64</span>
2579
2575
 
2580
- <span class='kw'>def</span> <span class='id param_serializer'>param_serializer</span> <span class='id parameter'>parameter</span>
2581
- <span class='const'>Pupil</span><span class='period'>.</span><span class='id param_serializer'>param_serializer</span> <span class='id parameter'>parameter</span>
2576
+ <span class='kw'>def</span> <span class='id identifier rubyid_param_serializer'>param_serializer</span> <span class='id identifier rubyid_parameter'>parameter</span>
2577
+ <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>
2582
2578
  <span class='kw'>end</span></pre>
2583
2579
  </td>
2584
2580
  </tr>
@@ -2598,27 +2594,27 @@ mention
2598
2594
  <pre class="lines">
2599
2595
 
2600
2596
 
2597
+ 78
2598
+ 79
2601
2599
  80
2602
2600
  81
2603
2601
  82
2604
2602
  83
2605
2603
  84
2606
2604
  85
2607
- 86
2608
- 87
2609
- 88</pre>
2605
+ 86</pre>
2610
2606
  </td>
2611
2607
  <td>
2612
- <pre class="code"><span class="info file"># File 'lib/pupil/base.rb', line 80</span>
2608
+ <pre class="code"><span class="info file"># File 'lib/pupil/base.rb', line 78</span>
2613
2609
 
2614
- <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>
2615
- <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>
2610
+ <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>
2611
+ <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>
2616
2612
  <span class='kw'>begin</span>
2617
- <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>
2618
- <span class='kw'>rescue</span> <span class='op'>=&gt;</span> <span class='id vars'>vars</span>
2619
- <span class='id raise'>raise</span> <span class='const'>NetworkError</span><span class='comma'>,</span> <span class='id vars'>vars</span>
2613
+ <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>
2614
+ <span class='kw'>rescue</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_vars'>vars</span>
2615
+ <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>
2620
2616
  <span class='kw'>end</span>
2621
- <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>
2617
+ <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>
2622
2618
  <span class='kw'>end</span></pre>
2623
2619
  </td>
2624
2620
  </tr>
@@ -2677,9 +2673,9 @@ Rate limit statuses
2677
2673
  <td>
2678
2674
  <pre class="code"><span class="info file"># File 'lib/pupil/account.rb', line 12</span>
2679
2675
 
2680
- <span class='kw'>def</span> <span class='id rate_limit'>rate_limit</span>
2681
- <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>
2682
- <span class='kw'>return</span> <span class='id response'>response</span>
2676
+ <span class='kw'>def</span> <span class='id identifier rubyid_rate_limit'>rate_limit</span>
2677
+ <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>
2678
+ <span class='kw'>return</span> <span class='id identifier rubyid_response'>response</span>
2683
2679
  <span class='kw'>end</span></pre>
2684
2680
  </td>
2685
2681
  </tr>
@@ -2709,11 +2705,11 @@ Rate limit statuses
2709
2705
  <td>
2710
2706
  <pre class="code"><span class="info file"># File 'lib/pupil/statuses.rb', line 62</span>
2711
2707
 
2712
- <span class='kw'>def</span> <span class='id show_status'>show_status</span> <span class='id status_id'>status_id</span>
2713
- <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>
2714
- <span class='kw'>return</span> <span class='id response'>response</span>
2715
- <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>
2716
- <span class='kw'>return</span> <span class='id status'>status</span>
2708
+ <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>
2709
+ <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>
2710
+ <span class='kw'>return</span> <span class='id identifier rubyid_response'>response</span>
2711
+ <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>
2712
+ <span class='kw'>return</span> <span class='id identifier rubyid_status'>status</span>
2717
2713
  <span class='kw'>end</span></pre>
2718
2714
  </td>
2719
2715
  </tr>
@@ -2802,16 +2798,16 @@ response
2802
2798
  <td>
2803
2799
  <pre class="code"><span class="info file"># File 'lib/pupil/blocks.rb', line 20</span>
2804
2800
 
2805
- <span class='kw'>def</span> <span class='id unblock'>unblock</span> <span class='id param'>param</span>
2806
- <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>
2801
+ <span class='kw'>def</span> <span class='id identifier rubyid_unblock'>unblock</span> <span class='id identifier rubyid_param'>param</span>
2802
+ <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>
2807
2803
  <span class='kw'>when</span> <span class='symbol'>:screen_name</span>
2808
- <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>
2804
+ <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>
2809
2805
  <span class='kw'>when</span> <span class='symbol'>:id</span>
2810
- <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>
2806
+ <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>
2811
2807
  <span class='kw'>end</span>
2812
2808
 
2813
- <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>
2814
- <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>
2809
+ <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>
2810
+ <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>
2815
2811
  <span class='kw'>end</span>
2816
2812
  <span class='kw'>return</span> <span class='kw'>false</span>
2817
2813
  <span class='kw'>end</span></pre>
@@ -2902,16 +2898,16 @@ response
2902
2898
  <td>
2903
2899
  <pre class="code"><span class="info file"># File 'lib/pupil/friendships.rb', line 57</span>
2904
2900
 
2905
- <span class='kw'>def</span> <span class='id unfollow'>unfollow</span> <span class='id param'>param</span>
2906
- <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>
2901
+ <span class='kw'>def</span> <span class='id identifier rubyid_unfollow'>unfollow</span> <span class='id identifier rubyid_param'>param</span>
2902
+ <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>
2907
2903
  <span class='kw'>when</span> <span class='symbol'>:screen_name</span>
2908
- <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>
2904
+ <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>
2909
2905
  <span class='kw'>when</span> <span class='symbol'>:id</span>
2910
- <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>
2906
+ <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>
2911
2907
  <span class='kw'>end</span>
2912
2908
 
2913
- <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>
2914
- <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>
2909
+ <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>
2910
+ <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>
2915
2911
  <span class='kw'>end</span>
2916
2912
  <span class='kw'>return</span> <span class='kw'>false</span>
2917
2913
  <span class='kw'>end</span></pre>
@@ -2949,13 +2945,13 @@ response
2949
2945
  <td>
2950
2946
  <pre class="code"><span class="info file"># File 'lib/pupil/statuses.rb', line 69</span>
2951
2947
 
2952
- <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>
2953
- <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>
2948
+ <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>
2949
+ <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>
2954
2950
  <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>
2955
- <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>
2956
- <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>
2951
+ <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>
2952
+ <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>
2957
2953
  <span class='rparen'>)</span>
2958
- <span class='kw'>return</span> <span class='id response'>response</span>
2954
+ <span class='kw'>return</span> <span class='id identifier rubyid_response'>response</span>
2959
2955
  <span class='kw'>end</span></pre>
2960
2956
  </td>
2961
2957
  </tr>
@@ -3145,20 +3141,20 @@ Updated profile
3145
3141
  <td>
3146
3142
  <pre class="code"><span class="info file"># File 'lib/pupil/account.rb', line 36</span>
3147
3143
 
3148
- <span class='kw'>def</span> <span class='id update_profile'>update_profile</span> <span class='id param'>param</span>
3149
- <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>
3150
- <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>
3151
- <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>
3152
- <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>
3153
- <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>
3154
- <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>
3155
- <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>
3156
- <span class='id param'>param</span><span class='period'>.</span><span class='id delete'>delete</span> <span class='symbol'>:colors</span>
3157
- <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>
3158
- <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>
3144
+ <span class='kw'>def</span> <span class='id identifier rubyid_update_profile'>update_profile</span> <span class='id identifier rubyid_param'>param</span>
3145
+ <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>
3146
+ <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>
3147
+ <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>
3148
+ <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>
3149
+ <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>
3150
+ <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>
3151
+ <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>
3152
+ <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>
3153
+ <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>
3154
+ <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>
3159
3155
  <span class='kw'>end</span>
3160
- <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>
3161
- <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>
3156
+ <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>
3157
+ <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>
3162
3158
  <span class='kw'>end</span></pre>
3163
3159
  </td>
3164
3160
  </tr>
@@ -3187,9 +3183,9 @@ Returning user timeline
3187
3183
  <h3>Examples:</h3>
3188
3184
 
3189
3185
  <h4><div class='inline'></div></h4>
3190
- <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>
3191
- <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>
3192
- <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>
3186
+ <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>
3187
+ <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>
3188
+ <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>
3193
3189
  <span class='kw'>end</span></pre>
3194
3190
 
3195
3191
  </div>
@@ -3364,14 +3360,14 @@ timeline
3364
3360
  <td>
3365
3361
  <pre class="code"><span class="info file"># File 'lib/pupil/statuses.rb', line 52</span>
3366
3362
 
3367
- <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>
3368
- <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>
3369
- <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>
3370
- <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>
3371
- <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>
3372
- <span class='id statuses'>statuses</span> <span class='op'>&lt;&lt;</span> <span class='id status'>status</span>
3363
+ <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>
3364
+ <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>
3365
+ <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>
3366
+ <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>
3367
+ <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>
3368
+ <span class='id identifier rubyid_statuses'>statuses</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_status'>status</span>
3373
3369
  <span class='kw'>end</span>
3374
- <span class='kw'>return</span> <span class='id statuses'>statuses</span>
3370
+ <span class='kw'>return</span> <span class='id identifier rubyid_statuses'>statuses</span>
3375
3371
  <span class='kw'>end</span></pre>
3376
3372
  </td>
3377
3373
  </tr>
@@ -3431,10 +3427,10 @@ User credentials
3431
3427
  <td>
3432
3428
  <pre class="code"><span class="info file"># File 'lib/pupil/account.rb', line 4</span>
3433
3429
 
3434
- <span class='kw'>def</span> <span class='id verify_credentials'>verify_credentials</span>
3435
- <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>
3436
- <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>
3437
- <span class='kw'>return</span> <span class='id user'>user</span>
3430
+ <span class='kw'>def</span> <span class='id identifier rubyid_verify_credentials'>verify_credentials</span>
3431
+ <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>
3432
+ <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>
3433
+ <span class='kw'>return</span> <span class='id identifier rubyid_user'>user</span>
3438
3434
  <span class='kw'>end</span></pre>
3439
3435
  </td>
3440
3436
  </tr>
@@ -3446,9 +3442,9 @@ User credentials
3446
3442
  </div>
3447
3443
 
3448
3444
  <div id="footer">
3449
- Generated on Fri Dec 16 17:19:17 2011 by
3445
+ Generated on Sat Dec 17 20:58:32 2011 by
3450
3446
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
3451
- 0.7.3 (ruby-1.9.2).
3447
+ 0.7.4 (ruby-1.9.2).
3452
3448
  </div>
3453
3449
 
3454
3450
  </body>