songkickr 0.1.4 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. data/LICENSE +1 -1
  2. data/README.rdoc +11 -4
  3. data/VERSION +1 -1
  4. data/doc/APIKeyNotSet.html +214 -0
  5. data/doc/LICENSE.html +133 -0
  6. data/doc/README_rdoc.html +170 -0
  7. data/doc/Songkickr/Artist.html +305 -0
  8. data/doc/Songkickr/ArtistResult.html +334 -0
  9. data/doc/Songkickr/ConcertSetlistResult.html +301 -0
  10. data/doc/Songkickr/Event.html +556 -0
  11. data/doc/Songkickr/EventResult.html +332 -0
  12. data/doc/Songkickr/Location.html +326 -0
  13. data/doc/Songkickr/LocationResult.html +335 -0
  14. data/doc/Songkickr/Performance.html +326 -0
  15. data/doc/Songkickr/Remote.html +715 -0
  16. data/doc/Songkickr/Setlist.html +398 -0
  17. data/doc/Songkickr/SetlistItem.html +263 -0
  18. data/doc/Songkickr/Venue.html +292 -0
  19. data/doc/Songkickr.html +328 -0
  20. data/doc/created.rid +16 -0
  21. data/doc/images/brick.png +0 -0
  22. data/doc/images/brick_link.png +0 -0
  23. data/doc/images/bug.png +0 -0
  24. data/doc/images/bullet_black.png +0 -0
  25. data/doc/images/bullet_toggle_minus.png +0 -0
  26. data/doc/images/bullet_toggle_plus.png +0 -0
  27. data/doc/images/date.png +0 -0
  28. data/doc/images/find.png +0 -0
  29. data/doc/images/loadingAnimation.gif +0 -0
  30. data/doc/images/macFFBgHack.png +0 -0
  31. data/doc/images/package.png +0 -0
  32. data/doc/images/page_green.png +0 -0
  33. data/doc/images/page_white_text.png +0 -0
  34. data/doc/images/page_white_width.png +0 -0
  35. data/doc/images/plugin.png +0 -0
  36. data/doc/images/ruby.png +0 -0
  37. data/doc/images/tag_green.png +0 -0
  38. data/doc/images/wrench.png +0 -0
  39. data/doc/images/wrench_orange.png +0 -0
  40. data/doc/images/zoom.png +0 -0
  41. data/doc/index.html +144 -0
  42. data/doc/js/darkfish.js +116 -0
  43. data/doc/js/jquery.js +32 -0
  44. data/doc/js/quicksearch.js +114 -0
  45. data/doc/js/thickbox-compressed.js +10 -0
  46. data/doc/lib/songkickr/artist_rb.html +52 -0
  47. data/doc/lib/songkickr/artist_result_rb.html +52 -0
  48. data/doc/lib/songkickr/concert_setlist_result_rb.html +52 -0
  49. data/doc/lib/songkickr/event_rb.html +52 -0
  50. data/doc/lib/songkickr/event_result_rb.html +52 -0
  51. data/doc/lib/songkickr/location_rb.html +52 -0
  52. data/doc/lib/songkickr/location_result_rb.html +52 -0
  53. data/doc/lib/songkickr/performance_rb.html +52 -0
  54. data/doc/lib/songkickr/remote_rb.html +52 -0
  55. data/doc/lib/songkickr/setlist_item_rb.html +52 -0
  56. data/doc/lib/songkickr/setlist_rb.html +52 -0
  57. data/doc/lib/songkickr/venue_rb.html +52 -0
  58. data/doc/lib/songkickr_rb.html +56 -0
  59. data/doc/rdoc.css +759 -0
  60. data/lib/songkickr/artist.rb +17 -6
  61. data/lib/songkickr/artist_result.rb +25 -22
  62. data/lib/songkickr/concert_setlist_result.rb +6 -2
  63. data/lib/songkickr/event.rb +42 -3
  64. data/lib/songkickr/event_result.rb +3 -1
  65. data/lib/songkickr/location.rb +28 -3
  66. data/lib/songkickr/location_result.rb +8 -3
  67. data/lib/songkickr/performance.rb +20 -4
  68. data/lib/songkickr/remote.rb +102 -60
  69. data/lib/songkickr/setlist.rb +20 -0
  70. data/lib/songkickr/setlist_item.rb +6 -0
  71. data/lib/songkickr.rb +16 -3
  72. data/songkickr.gemspec +60 -12
  73. data/test.rb +12 -11
  74. metadata +66 -13
@@ -0,0 +1,305 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: Songkickr::Artist</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
+
17
+ </head>
18
+ <body id="top" class="class">
19
+
20
+ <div id="metadata">
21
+ <div id="home-metadata">
22
+ <div id="home-section" class="section">
23
+ <h3 class="section-header">
24
+ <a href="../index.html">Home</a>
25
+ <a href="../index.html#classes">Classes</a>
26
+ <a href="../index.html#methods">Methods</a>
27
+ </h3>
28
+ </div>
29
+ </div>
30
+
31
+ <div id="file-metadata">
32
+ <div id="file-list-section" class="section">
33
+ <h3 class="section-header">In Files</h3>
34
+ <div class="section-body">
35
+ <ul>
36
+
37
+ <li><a href="../lib/songkickr/artist_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/songkickr/artist.rb">lib/songkickr/artist.rb</a></li>
39
+
40
+ </ul>
41
+ </div>
42
+ </div>
43
+
44
+
45
+ </div>
46
+
47
+ <div id="class-metadata">
48
+
49
+ <!-- Parent Class -->
50
+ <div id="parent-class-section" class="section">
51
+ <h3 class="section-header">Parent</h3>
52
+
53
+ <p class="link">Object</p>
54
+
55
+ </div>
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+ <!-- Method Quickref -->
64
+ <div id="method-list-section" class="section">
65
+ <h3 class="section-header">Methods</h3>
66
+ <ul class="link-list">
67
+
68
+ <li><a href="#method-c-new">::new</a></li>
69
+
70
+ </ul>
71
+ </div>
72
+
73
+
74
+
75
+ </div>
76
+
77
+ <div id="project-metadata">
78
+
79
+
80
+ <div id="fileindex-section" class="section project-section">
81
+ <h3 class="section-header">Files</h3>
82
+ <ul>
83
+
84
+ <li class="file"><a href="../LICENSE.html">LICENSE</a></li>
85
+
86
+ <li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
87
+
88
+ </ul>
89
+ </div>
90
+
91
+
92
+ <div id="classindex-section" class="section project-section">
93
+ <h3 class="section-header">Class/Module Index
94
+ <span class="search-toggle"><img src="../images/find.png"
95
+ height="16" width="16" alt="[+]"
96
+ title="show/hide quicksearch" /></span></h3>
97
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
98
+ <fieldset>
99
+ <legend>Quicksearch</legend>
100
+ <input type="text" name="quicksearch" value=""
101
+ class="quicksearch-field" />
102
+ </fieldset>
103
+ </form>
104
+
105
+ <ul class="link-list">
106
+
107
+ <li><a href="../Songkickr.html">Songkickr</a></li>
108
+
109
+ <li><a href="../Songkickr/Artist.html">Songkickr::Artist</a></li>
110
+
111
+ <li><a href="../Songkickr/ArtistResult.html">Songkickr::ArtistResult</a></li>
112
+
113
+ <li><a href="../Songkickr/ConcertSetlistResult.html">Songkickr::ConcertSetlistResult</a></li>
114
+
115
+ <li><a href="../Songkickr/Event.html">Songkickr::Event</a></li>
116
+
117
+ <li><a href="../Songkickr/EventResult.html">Songkickr::EventResult</a></li>
118
+
119
+ <li><a href="../Songkickr/Location.html">Songkickr::Location</a></li>
120
+
121
+ <li><a href="../Songkickr/LocationResult.html">Songkickr::LocationResult</a></li>
122
+
123
+ <li><a href="../Songkickr/Performance.html">Songkickr::Performance</a></li>
124
+
125
+ <li><a href="../Songkickr/Remote.html">Songkickr::Remote</a></li>
126
+
127
+ <li><a href="../Songkickr/Setlist.html">Songkickr::Setlist</a></li>
128
+
129
+ <li><a href="../Songkickr/SetlistItem.html">Songkickr::SetlistItem</a></li>
130
+
131
+ <li><a href="../Songkickr/Venue.html">Songkickr::Venue</a></li>
132
+
133
+ <li><a href="../APIKeyNotSet.html">APIKeyNotSet</a></li>
134
+
135
+ </ul>
136
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
137
+ </div>
138
+
139
+
140
+ </div>
141
+ </div>
142
+
143
+ <div id="documentation">
144
+ <h1 class="class">Songkickr::Artist</h1>
145
+
146
+ <div id="description" class="description">
147
+
148
+ <p>A single artist</p>
149
+
150
+ <pre>{
151
+ &quot;uri&quot;:&quot;http://www.songkick.com/artists/253846-radiohead&quot;,
152
+ &quot;displayName&quot;:&quot;Radiohead&quot;,
153
+ &quot;id&quot;:253846,
154
+ &quot;onTourUntil&quot;:&quot;2010-01-01&quot;
155
+ }</pre>
156
+
157
+ <p><a
158
+ href="http://www.songkick.com/developer/artist-search">www.songkick.com/developer/artist-search</a></p>
159
+
160
+ </div><!-- description -->
161
+
162
+
163
+ <div id="5Buntitled-5D" class="documentation-section">
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+ <!-- Attributes -->
172
+ <div id="attribute-method-details" class="method-section section">
173
+ <h3 class="section-header">Attributes</h3>
174
+
175
+
176
+ <div id="display_name-attribute-method" class="method-detail">
177
+ <a name="display_name"></a>
178
+
179
+ <a name="display_name="></a>
180
+
181
+ <div class="method-heading attribute-method-heading">
182
+ <span class="method-name">display_name</span><span
183
+ class="attribute-access-type">[RW]</span>
184
+ </div>
185
+
186
+ <div class="method-description">
187
+
188
+
189
+
190
+ </div>
191
+ </div>
192
+
193
+ <div id="id-attribute-method" class="method-detail">
194
+ <a name="id"></a>
195
+
196
+ <a name="id="></a>
197
+
198
+ <div class="method-heading attribute-method-heading">
199
+ <span class="method-name">id</span><span
200
+ class="attribute-access-type">[RW]</span>
201
+ </div>
202
+
203
+ <div class="method-description">
204
+
205
+
206
+
207
+ </div>
208
+ </div>
209
+
210
+ <div id="on_tour_until-attribute-method" class="method-detail">
211
+ <a name="on_tour_until"></a>
212
+
213
+ <a name="on_tour_until="></a>
214
+
215
+ <div class="method-heading attribute-method-heading">
216
+ <span class="method-name">on_tour_until</span><span
217
+ class="attribute-access-type">[RW]</span>
218
+ </div>
219
+
220
+ <div class="method-description">
221
+
222
+
223
+
224
+ </div>
225
+ </div>
226
+
227
+ <div id="uri-attribute-method" class="method-detail">
228
+ <a name="uri"></a>
229
+
230
+ <a name="uri="></a>
231
+
232
+ <div class="method-heading attribute-method-heading">
233
+ <span class="method-name">uri</span><span
234
+ class="attribute-access-type">[RW]</span>
235
+ </div>
236
+
237
+ <div class="method-description">
238
+
239
+
240
+
241
+ </div>
242
+ </div>
243
+
244
+ </div><!-- attribute-method-details -->
245
+
246
+
247
+ <!-- Methods -->
248
+
249
+ <div id="public-class-method-details" class="method-section section">
250
+ <h3 class="section-header">Public Class Methods</h3>
251
+
252
+
253
+ <div id="new-method" class="method-detail ">
254
+ <a name="method-c-new"></a>
255
+
256
+
257
+ <div class="method-heading">
258
+ <span class="method-name">new</span><span
259
+ class="method-args">(artist_hash = {})</span>
260
+ <span class="method-click-advice">click to toggle source</span>
261
+ </div>
262
+
263
+
264
+ <div class="method-description">
265
+
266
+ <p>Accepts a hash of artist attributes.</p>
267
+
268
+
269
+
270
+ <div class="method-source-code" id="new-source">
271
+ <pre>
272
+ <span class="ruby-comment"># File lib/songkickr/artist.rb, line 16</span>
273
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">artist_hash</span> = {})
274
+ <span class="ruby-ivar">@uri</span> = <span class="ruby-identifier">artist_hash</span>[<span class="ruby-string">&quot;uri&quot;</span>]
275
+ <span class="ruby-ivar">@display_name</span> = <span class="ruby-identifier">artist_hash</span>[<span class="ruby-string">&quot;displayName&quot;</span>]
276
+ <span class="ruby-ivar">@id</span> = <span class="ruby-identifier">artist_hash</span>[<span class="ruby-string">&quot;id&quot;</span>]
277
+ <span class="ruby-ivar">@uri</span> = <span class="ruby-identifier">artist_hash</span>[<span class="ruby-string">&quot;uri&quot;</span>]
278
+ <span class="ruby-ivar">@on_tour_until</span> = <span class="ruby-identifier">artist_hash</span>[<span class="ruby-string">&quot;onTourUntil&quot;</span>]
279
+ <span class="ruby-keyword">end</span></pre>
280
+ </div><!-- new-source -->
281
+
282
+ </div>
283
+
284
+
285
+
286
+
287
+ </div><!-- new-method -->
288
+
289
+
290
+ </div><!-- public-class-method-details -->
291
+
292
+ </div><!-- 5Buntitled-5D -->
293
+
294
+
295
+ </div><!-- documentation -->
296
+
297
+ <div id="validator-badges">
298
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
299
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
300
+ Rdoc Generator</a> 2</small>.</p>
301
+ </div>
302
+
303
+ </body>
304
+ </html>
305
+
@@ -0,0 +1,334 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: Songkickr::ArtistResult</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
+
17
+ </head>
18
+ <body id="top" class="class">
19
+
20
+ <div id="metadata">
21
+ <div id="home-metadata">
22
+ <div id="home-section" class="section">
23
+ <h3 class="section-header">
24
+ <a href="../index.html">Home</a>
25
+ <a href="../index.html#classes">Classes</a>
26
+ <a href="../index.html#methods">Methods</a>
27
+ </h3>
28
+ </div>
29
+ </div>
30
+
31
+ <div id="file-metadata">
32
+ <div id="file-list-section" class="section">
33
+ <h3 class="section-header">In Files</h3>
34
+ <div class="section-body">
35
+ <ul>
36
+
37
+ <li><a href="../lib/songkickr/artist_result_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/songkickr/artist_result.rb">lib/songkickr/artist_result.rb</a></li>
39
+
40
+ </ul>
41
+ </div>
42
+ </div>
43
+
44
+
45
+ </div>
46
+
47
+ <div id="class-metadata">
48
+
49
+ <!-- Parent Class -->
50
+ <div id="parent-class-section" class="section">
51
+ <h3 class="section-header">Parent</h3>
52
+
53
+ <p class="link">Object</p>
54
+
55
+ </div>
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+ <!-- Method Quickref -->
64
+ <div id="method-list-section" class="section">
65
+ <h3 class="section-header">Methods</h3>
66
+ <ul class="link-list">
67
+
68
+ <li><a href="#method-c-new">::new</a></li>
69
+
70
+ <li><a href="#method-i-parse_results">#parse_results</a></li>
71
+
72
+ </ul>
73
+ </div>
74
+
75
+
76
+
77
+ </div>
78
+
79
+ <div id="project-metadata">
80
+
81
+
82
+ <div id="fileindex-section" class="section project-section">
83
+ <h3 class="section-header">Files</h3>
84
+ <ul>
85
+
86
+ <li class="file"><a href="../LICENSE.html">LICENSE</a></li>
87
+
88
+ <li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
89
+
90
+ </ul>
91
+ </div>
92
+
93
+
94
+ <div id="classindex-section" class="section project-section">
95
+ <h3 class="section-header">Class/Module Index
96
+ <span class="search-toggle"><img src="../images/find.png"
97
+ height="16" width="16" alt="[+]"
98
+ title="show/hide quicksearch" /></span></h3>
99
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
100
+ <fieldset>
101
+ <legend>Quicksearch</legend>
102
+ <input type="text" name="quicksearch" value=""
103
+ class="quicksearch-field" />
104
+ </fieldset>
105
+ </form>
106
+
107
+ <ul class="link-list">
108
+
109
+ <li><a href="../Songkickr.html">Songkickr</a></li>
110
+
111
+ <li><a href="../Songkickr/Artist.html">Songkickr::Artist</a></li>
112
+
113
+ <li><a href="../Songkickr/ArtistResult.html">Songkickr::ArtistResult</a></li>
114
+
115
+ <li><a href="../Songkickr/ConcertSetlistResult.html">Songkickr::ConcertSetlistResult</a></li>
116
+
117
+ <li><a href="../Songkickr/Event.html">Songkickr::Event</a></li>
118
+
119
+ <li><a href="../Songkickr/EventResult.html">Songkickr::EventResult</a></li>
120
+
121
+ <li><a href="../Songkickr/Location.html">Songkickr::Location</a></li>
122
+
123
+ <li><a href="../Songkickr/LocationResult.html">Songkickr::LocationResult</a></li>
124
+
125
+ <li><a href="../Songkickr/Performance.html">Songkickr::Performance</a></li>
126
+
127
+ <li><a href="../Songkickr/Remote.html">Songkickr::Remote</a></li>
128
+
129
+ <li><a href="../Songkickr/Setlist.html">Songkickr::Setlist</a></li>
130
+
131
+ <li><a href="../Songkickr/SetlistItem.html">Songkickr::SetlistItem</a></li>
132
+
133
+ <li><a href="../Songkickr/Venue.html">Songkickr::Venue</a></li>
134
+
135
+ <li><a href="../APIKeyNotSet.html">APIKeyNotSet</a></li>
136
+
137
+ </ul>
138
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
139
+ </div>
140
+
141
+
142
+ </div>
143
+ </div>
144
+
145
+ <div id="documentation">
146
+ <h1 class="class">Songkickr::ArtistResult</h1>
147
+
148
+ <div id="description" class="description">
149
+
150
+ <p>A class to represent the result hash of an <a href="Artist.html">Artist</a>
151
+ search.</p>
152
+
153
+ </div><!-- description -->
154
+
155
+
156
+ <div id="5Buntitled-5D" class="documentation-section">
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+ <!-- Attributes -->
165
+ <div id="attribute-method-details" class="method-section section">
166
+ <h3 class="section-header">Attributes</h3>
167
+
168
+
169
+ <div id="page-attribute-method" class="method-detail">
170
+ <a name="page"></a>
171
+
172
+ <a name="page="></a>
173
+
174
+ <div class="method-heading attribute-method-heading">
175
+ <span class="method-name">page</span><span
176
+ class="attribute-access-type">[RW]</span>
177
+ </div>
178
+
179
+ <div class="method-description">
180
+
181
+
182
+
183
+ </div>
184
+ </div>
185
+
186
+ <div id="results-attribute-method" class="method-detail">
187
+ <a name="results"></a>
188
+
189
+ <a name="results="></a>
190
+
191
+ <div class="method-heading attribute-method-heading">
192
+ <span class="method-name">results</span><span
193
+ class="attribute-access-type">[RW]</span>
194
+ </div>
195
+
196
+ <div class="method-description">
197
+
198
+
199
+
200
+ </div>
201
+ </div>
202
+
203
+ <div id="total_entries-attribute-method" class="method-detail">
204
+ <a name="total_entries"></a>
205
+
206
+ <a name="total_entries="></a>
207
+
208
+ <div class="method-heading attribute-method-heading">
209
+ <span class="method-name">total_entries</span><span
210
+ class="attribute-access-type">[RW]</span>
211
+ </div>
212
+
213
+ <div class="method-description">
214
+
215
+
216
+
217
+ </div>
218
+ </div>
219
+
220
+ </div><!-- attribute-method-details -->
221
+
222
+
223
+ <!-- Methods -->
224
+
225
+ <div id="protected-instance-method-details" class="method-section section">
226
+ <h3 class="section-header">Protected Instance Methods</h3>
227
+
228
+
229
+ <div id="parse_results-method" class="method-detail ">
230
+ <a name="method-i-parse_results"></a>
231
+
232
+
233
+ <div class="method-heading">
234
+ <span class="method-name">parse_results</span><span
235
+ class="method-args">(results = {})</span>
236
+ <span class="method-click-advice">click to toggle source</span>
237
+ </div>
238
+
239
+
240
+ <div class="method-description">
241
+
242
+ <p>Take the results hash directly and parse the artists into <a
243
+ href="Artist.html">Artist</a> objects.</p>
244
+
245
+ <p>Returns an array of Artists.</p>
246
+
247
+
248
+
249
+ <div class="method-source-code" id="parse_results-source">
250
+ <pre>
251
+ <span class="ruby-comment"># File lib/songkickr/artist_result.rb, line 22</span>
252
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">parse_results</span>(<span class="ruby-identifier">results</span> = {})
253
+ <span class="ruby-identifier">artists</span> = []
254
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">results</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-string">&quot;artist&quot;</span>)
255
+ <span class="ruby-identifier">results</span>[<span class="ruby-string">&quot;artist&quot;</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">artist</span><span class="ruby-operator">|</span>
256
+ <span class="ruby-identifier">artists</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">Songkickr</span><span class="ruby-operator">::</span><span class="ruby-constant">Artist</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">artist</span>)
257
+ <span class="ruby-keyword">end</span>
258
+ <span class="ruby-keyword">end</span>
259
+ <span class="ruby-identifier">artists</span>
260
+ <span class="ruby-keyword">end</span></pre>
261
+ </div><!-- parse_results-source -->
262
+
263
+ </div>
264
+
265
+
266
+
267
+
268
+ </div><!-- parse_results-method -->
269
+
270
+
271
+ </div><!-- protected-instance-method-details -->
272
+
273
+ <div id="public-class-method-details" class="method-section section">
274
+ <h3 class="section-header">Public Class Methods</h3>
275
+
276
+
277
+ <div id="new-method" class="method-detail ">
278
+ <a name="method-c-new"></a>
279
+
280
+
281
+ <div class="method-heading">
282
+ <span class="method-name">new</span><span
283
+ class="method-args">(result_hash = {})</span>
284
+ <span class="method-click-advice">click to toggle source</span>
285
+ </div>
286
+
287
+
288
+ <div class="method-description">
289
+
290
+ <p>Takes the result hash directly and parses out the page and total entries
291
+ and finally passes off to the <a
292
+ href="ArtistResult.html#method-i-parse_results">parse_results</a> method to
293
+ get the results.</p>
294
+
295
+
296
+
297
+ <div class="method-source-code" id="new-source">
298
+ <pre>
299
+ <span class="ruby-comment"># File lib/songkickr/artist_result.rb, line 7</span>
300
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">result_hash</span> = {})
301
+ <span class="ruby-identifier">results_page</span> = <span class="ruby-identifier">result_hash</span>[<span class="ruby-string">&quot;resultsPage&quot;</span>]
302
+
303
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">results_page</span>
304
+ <span class="ruby-ivar">@page</span> = <span class="ruby-identifier">results_page</span>[<span class="ruby-string">&quot;page&quot;</span>]
305
+ <span class="ruby-ivar">@total_entries</span> = <span class="ruby-identifier">results_page</span>[<span class="ruby-string">&quot;totalEntries&quot;</span>]
306
+ <span class="ruby-ivar">@results</span> = <span class="ruby-identifier">parse_results</span> <span class="ruby-identifier">results_page</span>[<span class="ruby-string">&quot;results&quot;</span>]
307
+ <span class="ruby-keyword">end</span>
308
+ <span class="ruby-keyword">end</span></pre>
309
+ </div><!-- new-source -->
310
+
311
+ </div>
312
+
313
+
314
+
315
+
316
+ </div><!-- new-method -->
317
+
318
+
319
+ </div><!-- public-class-method-details -->
320
+
321
+ </div><!-- 5Buntitled-5D -->
322
+
323
+
324
+ </div><!-- documentation -->
325
+
326
+ <div id="validator-badges">
327
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
328
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
329
+ Rdoc Generator</a> 2</small>.</p>
330
+ </div>
331
+
332
+ </body>
333
+ </html>
334
+