songkickr 0.3.3 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. checksums.yaml +7 -0
  2. data/.bundle/config +2 -0
  3. data/.gitignore +1 -0
  4. data/.travis.yml +8 -0
  5. data/Gemfile.lock +42 -22
  6. data/LICENSE +1 -1
  7. data/README.rdoc +14 -9
  8. data/Rakefile +3 -4
  9. data/lib/songkickr/artist.rb +2 -2
  10. data/lib/songkickr/artist_result.rb +4 -24
  11. data/lib/songkickr/calendar_entry.rb +23 -0
  12. data/lib/songkickr/calendar_result.rb +10 -0
  13. data/lib/songkickr/concert_setlist_result.rb +5 -27
  14. data/lib/songkickr/event.rb +8 -14
  15. data/lib/songkickr/event_result.rb +5 -23
  16. data/lib/songkickr/location.rb +4 -4
  17. data/lib/songkickr/location_result.rb +5 -30
  18. data/lib/songkickr/metro_area.rb +28 -0
  19. data/lib/songkickr/metro_area_result.rb +12 -0
  20. data/lib/songkickr/performance.rb +17 -12
  21. data/lib/songkickr/remote.rb +18 -198
  22. data/lib/songkickr/remote_api/artist_details.rb +17 -0
  23. data/lib/songkickr/remote_api/event_details.rb +17 -0
  24. data/lib/songkickr/remote_api/past_events.rb +48 -0
  25. data/lib/songkickr/remote_api/similar_artists.rb +14 -0
  26. data/lib/songkickr/remote_api/upcoming_events.rb +125 -0
  27. data/lib/songkickr/remote_api/user_events_and_trackings.rb +143 -0
  28. data/lib/songkickr/remote_api/venue_details.rb +16 -0
  29. data/lib/songkickr/result_set.rb +27 -0
  30. data/lib/songkickr/setlist.rb +7 -12
  31. data/lib/songkickr/setlist_item.rb +1 -1
  32. data/lib/songkickr/tracking.rb +18 -0
  33. data/lib/songkickr/tracking_result.rb +24 -0
  34. data/lib/songkickr/venue.rb +10 -2
  35. data/lib/songkickr/venue_result.rb +32 -0
  36. data/lib/songkickr/version.rb +1 -1
  37. data/lib/songkickr.rb +24 -17
  38. data/songkickr.gemspec +17 -44
  39. data/test/fixtures/event_7391451.json +732 -1
  40. data/test/fixtures/location_search.json +38 -0
  41. data/test/fixtures/metro_area.json +11 -0
  42. data/test/fixtures/users_attendance_calendar.json +243 -0
  43. data/test/fixtures/vcr/artist_events.yml +1394 -0
  44. data/test/fixtures/vcr/artist_search.yml +38 -0
  45. data/test/fixtures/vcr/artists_gigography.yml +187 -0
  46. data/test/fixtures/vcr/concert_setlists.yml +47 -0
  47. data/test/fixtures/vcr/event_search.yml +110 -0
  48. data/test/fixtures/vcr/invalid_api_key.yml +6 -36
  49. data/test/fixtures/vcr/invalid_artist_id.yml +6 -6
  50. data/test/fixtures/vcr/invalid_event_id.yml +6 -6
  51. data/test/fixtures/vcr/invalid_user.yml +6 -6
  52. data/test/fixtures/vcr/invalid_venue_id.yml +6 -6
  53. data/test/fixtures/vcr/location_search.yml +42 -0
  54. data/test/fixtures/vcr/metro_areas_events.yml +1535 -0
  55. data/test/fixtures/vcr/similar_artists.yml +64 -0
  56. data/test/fixtures/vcr/users_artist_tracking.yml +99 -0
  57. data/test/fixtures/vcr/users_attendance.yml +66 -0
  58. data/test/fixtures/vcr/users_attendance_calendar.yml +51 -0
  59. data/test/fixtures/vcr/users_events.yml +809 -0
  60. data/test/fixtures/vcr/users_gigography.yml +2782 -0
  61. data/test/fixtures/vcr/users_metro_area_tracking.yml +66 -0
  62. data/test/fixtures/vcr/users_muted_artists.yml +66 -0
  63. data/test/fixtures/vcr/users_tracked_artists.yml +75 -0
  64. data/test/fixtures/vcr/users_tracked_events_calendar.yml +1901 -0
  65. data/test/fixtures/vcr/users_tracked_metro_areas.yml +37 -0
  66. data/test/fixtures/vcr/valid_artist.yml +9 -9
  67. data/test/fixtures/vcr/valid_event.yml +103 -38
  68. data/test/fixtures/vcr/valid_user.yml +634 -44
  69. data/test/fixtures/vcr/valid_venue.yml +25 -26
  70. data/test/fixtures/vcr/venue_calendar.yml +500 -0
  71. data/test/fixtures/vcr/venue_search.yml +42 -0
  72. data/test/helper.rb +1 -27
  73. data/test/songkickr/test_calendar_entry.rb +15 -0
  74. data/test/songkickr/test_event.rb +8 -9
  75. data/test/songkickr/test_location.rb +11 -11
  76. data/test/songkickr/test_metro_area.rb +17 -0
  77. data/test/songkickr/test_remote.rb +149 -3
  78. data/test/songkickr/test_setlist_item.rb +20 -0
  79. data/test/songkickr/test_venue.rb +1 -2
  80. data/test.rb +3 -5
  81. metadata +120 -152
  82. data/bin/autospec +0 -16
  83. data/bin/convert_to_should_syntax +0 -16
  84. data/bin/guard +0 -16
  85. data/bin/htmldiff +0 -16
  86. data/bin/httparty +0 -16
  87. data/bin/jeweler +0 -16
  88. data/bin/ldiff +0 -16
  89. data/bin/rake +0 -16
  90. data/bin/rake2thor +0 -16
  91. data/bin/rg +0 -16
  92. data/bin/ri +0 -16
  93. data/bin/rspec +0 -16
  94. data/bin/thor +0 -16
  95. data/doc/APIError.html +0 -241
  96. data/doc/APIKeyNotSet.html +0 -203
  97. data/doc/LICENSE.html +0 -133
  98. data/doc/README_rdoc.html +0 -173
  99. data/doc/ResourceNotFound.html +0 -203
  100. data/doc/Songkickr/Artist.html +0 -278
  101. data/doc/Songkickr/ArtistResult.html +0 -308
  102. data/doc/Songkickr/ConcertSetlistResult.html +0 -283
  103. data/doc/Songkickr/Event.html +0 -491
  104. data/doc/Songkickr/EventResult.html +0 -306
  105. data/doc/Songkickr/Location.html +0 -299
  106. data/doc/Songkickr/LocationResult.html +0 -309
  107. data/doc/Songkickr/Performance.html +0 -295
  108. data/doc/Songkickr/Remote.html +0 -864
  109. data/doc/Songkickr/Setlist.html +0 -360
  110. data/doc/Songkickr/SetlistItem.html +0 -244
  111. data/doc/Songkickr/Venue.html +0 -265
  112. data/doc/Songkickr.html +0 -261
  113. data/doc/created.rid +0 -16
  114. data/doc/images/add.png +0 -0
  115. data/doc/images/brick.png +0 -0
  116. data/doc/images/brick_link.png +0 -0
  117. data/doc/images/bug.png +0 -0
  118. data/doc/images/bullet_black.png +0 -0
  119. data/doc/images/bullet_toggle_minus.png +0 -0
  120. data/doc/images/bullet_toggle_plus.png +0 -0
  121. data/doc/images/date.png +0 -0
  122. data/doc/images/delete.png +0 -0
  123. data/doc/images/find.png +0 -0
  124. data/doc/images/loadingAnimation.gif +0 -0
  125. data/doc/images/macFFBgHack.png +0 -0
  126. data/doc/images/package.png +0 -0
  127. data/doc/images/page_green.png +0 -0
  128. data/doc/images/page_white_text.png +0 -0
  129. data/doc/images/page_white_width.png +0 -0
  130. data/doc/images/plugin.png +0 -0
  131. data/doc/images/ruby.png +0 -0
  132. data/doc/images/tag_blue.png +0 -0
  133. data/doc/images/tag_green.png +0 -0
  134. data/doc/images/transparent.png +0 -0
  135. data/doc/images/wrench.png +0 -0
  136. data/doc/images/wrench_orange.png +0 -0
  137. data/doc/images/zoom.png +0 -0
  138. data/doc/index.html +0 -110
  139. data/doc/js/darkfish.js +0 -153
  140. data/doc/js/jquery.js +0 -18
  141. data/doc/js/navigation.js +0 -142
  142. data/doc/js/quicksearch.js +0 -114
  143. data/doc/js/search.js +0 -94
  144. data/doc/js/search_index.js +0 -1
  145. data/doc/js/searcher.js +0 -228
  146. data/doc/js/thickbox-compressed.js +0 -10
  147. data/doc/lib/songkickr/artist_rb.html +0 -52
  148. data/doc/lib/songkickr/artist_result_rb.html +0 -52
  149. data/doc/lib/songkickr/concert_setlist_result_rb.html +0 -52
  150. data/doc/lib/songkickr/event_rb.html +0 -52
  151. data/doc/lib/songkickr/event_result_rb.html +0 -52
  152. data/doc/lib/songkickr/location_rb.html +0 -52
  153. data/doc/lib/songkickr/location_result_rb.html +0 -52
  154. data/doc/lib/songkickr/performance_rb.html +0 -52
  155. data/doc/lib/songkickr/remote_rb.html +0 -52
  156. data/doc/lib/songkickr/setlist_item_rb.html +0 -52
  157. data/doc/lib/songkickr/setlist_rb.html +0 -52
  158. data/doc/lib/songkickr/venue_rb.html +0 -52
  159. data/doc/lib/songkickr_rb.html +0 -56
  160. data/doc/rdoc.css +0 -543
  161. data/doc/table_of_contents.html +0 -185
  162. data/test/fixtures/locations_bar.json +0 -1
@@ -1,360 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
-
7
- <title>class Songkickr::Setlist - RDoc Documentation</title>
8
-
9
- <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
-
11
- <script type="text/javascript">
12
- var rdoc_rel_prefix = "../";
13
- </script>
14
-
15
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
- <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
- <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
- <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
- <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
- <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
-
22
-
23
- <body id="top" class="class">
24
- <nav id="metadata">
25
- <nav id="home-section" class="section">
26
- <h3 class="section-header">
27
- <a href="../index.html">Home</a>
28
- <a href="../table_of_contents.html#classes">Classes</a>
29
- <a href="../table_of_contents.html#methods">Methods</a>
30
- </h3>
31
- </nav>
32
-
33
-
34
- <nav id="search-section" class="section project-section" class="initially-hidden">
35
- <form action="#" method="get" accept-charset="utf-8">
36
- <h3 class="section-header">
37
- <input type="text" name="search" placeholder="Search" id="search-field"
38
- title="Type to search, Up and Down to navigate, Enter to load">
39
- </h3>
40
- </form>
41
-
42
- <ul id="search-results" class="initially-hidden"></ul>
43
- </nav>
44
-
45
-
46
- <div id="file-metadata">
47
- <nav id="file-list-section" class="section">
48
- <h3 class="section-header">Defined In</h3>
49
- <ul>
50
- <li>lib/songkickr/setlist.rb
51
- </ul>
52
- </nav>
53
-
54
-
55
- </div>
56
-
57
- <div id="class-metadata">
58
-
59
- <nav id="parent-class-section" class="section">
60
- <h3 class="section-header">Parent</h3>
61
-
62
- <p class="link">Object
63
-
64
- </nav>
65
-
66
-
67
- <!-- Method Quickref -->
68
- <nav id="method-list-section" class="section">
69
- <h3 class="section-header">Methods</h3>
70
-
71
- <ul class="link-list">
72
-
73
- <li><a href="#method-c-new">::new</a>
74
-
75
- <li><a href="#method-i-parse_setlist_items">#parse_setlist_items</a>
76
-
77
- </ul>
78
- </nav>
79
-
80
- </div>
81
-
82
- <div id="project-metadata">
83
- <nav id="fileindex-section" class="section project-section">
84
- <h3 class="section-header">Pages</h3>
85
-
86
- <ul>
87
-
88
- <li class="file"><a href="../LICENSE.html">LICENSE</a>
89
-
90
- <li class="file"><a href="../README_rdoc.html">README</a>
91
-
92
- </ul>
93
- </nav>
94
-
95
- <nav id="classindex-section" class="section project-section">
96
- <h3 class="section-header">Class and Module Index</h3>
97
-
98
- <ul class="link-list">
99
-
100
- <li><a href="../Songkickr.html">Songkickr</a>
101
-
102
- <li><a href="../Songkickr/Artist.html">Songkickr::Artist</a>
103
-
104
- <li><a href="../Songkickr/ArtistResult.html">Songkickr::ArtistResult</a>
105
-
106
- <li><a href="../Songkickr/ConcertSetlistResult.html">Songkickr::ConcertSetlistResult</a>
107
-
108
- <li><a href="../Songkickr/Event.html">Songkickr::Event</a>
109
-
110
- <li><a href="../Songkickr/EventResult.html">Songkickr::EventResult</a>
111
-
112
- <li><a href="../Songkickr/Location.html">Songkickr::Location</a>
113
-
114
- <li><a href="../Songkickr/LocationResult.html">Songkickr::LocationResult</a>
115
-
116
- <li><a href="../Songkickr/Performance.html">Songkickr::Performance</a>
117
-
118
- <li><a href="../Songkickr/Remote.html">Songkickr::Remote</a>
119
-
120
- <li><a href="../Songkickr/Setlist.html">Songkickr::Setlist</a>
121
-
122
- <li><a href="../Songkickr/SetlistItem.html">Songkickr::SetlistItem</a>
123
-
124
- <li><a href="../Songkickr/Venue.html">Songkickr::Venue</a>
125
-
126
- <li><a href="../APIError.html">APIError</a>
127
-
128
- <li><a href="../APIKeyNotSet.html">APIKeyNotSet</a>
129
-
130
- <li><a href="../ResourceNotFound.html">ResourceNotFound</a>
131
-
132
- </ul>
133
- </nav>
134
-
135
- </div>
136
- </nav>
137
-
138
- <div id="documentation">
139
- <h1 class="class">class Songkickr::Setlist</h1>
140
-
141
- <div id="description" class="description">
142
-
143
- <p>A single set list by an artist.</p>
144
-
145
- <p>{</p>
146
-
147
- <pre>&quot;displayName&quot;: &quot;N.E.R.D. at Glastonbury Festival 2009&quot;,
148
- &quot;artist&quot;: {
149
- &quot;uri&quot;: &quot;http://www.songkick.com/artists/387012-nerd?utm_source=791&amp;utm_medium=partner&quot;
150
- &quot;identifier&quot;: [
151
- {
152
- &quot;href&quot;: &quot;http://api.songkick.com/api/3.0/artists/mbid:3fb49f5a-fdc0-4789-9c84-22b38b3f3cb5.json&quot;
153
- &quot;mbid&quot;: &quot;3fb49f5a-fdc0-4789-9c84-22b38b3f3cb5&quot;
154
- }
155
- ]
156
- &quot;displayName&quot;: &quot;N.E.R.D.&quot;
157
- &quot;id&quot;: 387012
158
- },
159
- &quot;id&quot;: 9511,
160
- &quot;setlistItem&quot;: []</pre>
161
-
162
- <p>}</p>
163
-
164
- </div><!-- description -->
165
-
166
-
167
-
168
-
169
- <section id="5Buntitled-5D" class="documentation-section">
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
- <!-- Attributes -->
178
- <section id="attribute-method-details" class="method-section section">
179
- <h3 class="section-header">Attributes</h3>
180
-
181
-
182
- <div id="attribute-i-artist" class="method-detail">
183
- <div class="method-heading attribute-method-heading">
184
- <span class="method-name">artist</span><span
185
- class="attribute-access-type">[RW]</span>
186
- </div>
187
-
188
- <div class="method-description">
189
-
190
-
191
-
192
- </div>
193
- </div>
194
-
195
- <div id="attribute-i-display_name" class="method-detail">
196
- <div class="method-heading attribute-method-heading">
197
- <span class="method-name">display_name</span><span
198
- class="attribute-access-type">[RW]</span>
199
- </div>
200
-
201
- <div class="method-description">
202
-
203
-
204
-
205
- </div>
206
- </div>
207
-
208
- <div id="attribute-i-event" class="method-detail">
209
- <div class="method-heading attribute-method-heading">
210
- <span class="method-name">event</span><span
211
- class="attribute-access-type">[RW]</span>
212
- </div>
213
-
214
- <div class="method-description">
215
-
216
-
217
-
218
- </div>
219
- </div>
220
-
221
- <div id="attribute-i-id" class="method-detail">
222
- <div class="method-heading attribute-method-heading">
223
- <span class="method-name">id</span><span
224
- class="attribute-access-type">[RW]</span>
225
- </div>
226
-
227
- <div class="method-description">
228
-
229
-
230
-
231
- </div>
232
- </div>
233
-
234
- <div id="attribute-i-playlist_uri" class="method-detail">
235
- <div class="method-heading attribute-method-heading">
236
- <span class="method-name">playlist_uri</span><span
237
- class="attribute-access-type">[RW]</span>
238
- </div>
239
-
240
- <div class="method-description">
241
-
242
-
243
-
244
- </div>
245
- </div>
246
-
247
- <div id="attribute-i-setlist_items" class="method-detail">
248
- <div class="method-heading attribute-method-heading">
249
- <span class="method-name">setlist_items</span><span
250
- class="attribute-access-type">[RW]</span>
251
- </div>
252
-
253
- <div class="method-description">
254
-
255
-
256
-
257
- </div>
258
- </div>
259
-
260
- </section><!-- attribute-method-details -->
261
-
262
-
263
- <!-- Methods -->
264
-
265
- <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
266
- <h3 class="section-header">Public Class Methods</h3>
267
-
268
-
269
- <div id="method-c-new" class="method-detail ">
270
-
271
- <div class="method-heading">
272
- <span class="method-name">new</span><span
273
- class="method-args">(setlist_hash)</span>
274
- <span class="method-click-advice">click to toggle source</span>
275
- </div>
276
-
277
-
278
- <div class="method-description">
279
-
280
- <p>Takes the setlist hash and parses out an <a href="Event.html">Event</a> and
281
- <a href="Artist.html">Artist</a> and an array of SetlistItems.</p>
282
-
283
-
284
-
285
- <div class="method-source-code" id="new-source">
286
- <pre><span class="ruby-comment"># File lib/songkickr/setlist.rb, line 24</span>
287
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">setlist_hash</span>)
288
- <span class="ruby-ivar">@event</span> = <span class="ruby-constant">Songkickr</span><span class="ruby-operator">::</span><span class="ruby-constant">Event</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">setlist_hash</span>[<span class="ruby-string">&quot;event&quot;</span>]
289
- <span class="ruby-ivar">@setlist_items</span> = <span class="ruby-identifier">parse_setlist_items</span> <span class="ruby-identifier">setlist_hash</span>[<span class="ruby-string">&quot;setlistItem&quot;</span>]
290
- <span class="ruby-ivar">@artist</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">setlist_hash</span>[<span class="ruby-string">&quot;artist&quot;</span>]
291
- <span class="ruby-ivar">@playlist_uri</span> = <span class="ruby-identifier">setlist_hash</span>[<span class="ruby-string">&quot;playlistUri&quot;</span>]
292
- <span class="ruby-ivar">@display_name</span> = <span class="ruby-identifier">setlist_hash</span>[<span class="ruby-string">&quot;displayName&quot;</span>]
293
- <span class="ruby-ivar">@id</span> = <span class="ruby-identifier">setlist_hash</span>[<span class="ruby-string">&quot;id&quot;</span>]
294
- <span class="ruby-keyword">end</span></pre>
295
- </div><!-- new-source -->
296
-
297
- </div>
298
-
299
-
300
-
301
-
302
- </div><!-- new-method -->
303
-
304
-
305
- </section><!-- public-class-method-details -->
306
-
307
- <section id="protected-instance-5Buntitled-5D-method-details" class="method-section section">
308
- <h3 class="section-header">Protected Instance Methods</h3>
309
-
310
-
311
- <div id="method-i-parse_setlist_items" class="method-detail ">
312
-
313
- <div class="method-heading">
314
- <span class="method-name">parse_setlist_items</span><span
315
- class="method-args">(setlist_item_array = nil)</span>
316
- <span class="method-click-advice">click to toggle source</span>
317
- </div>
318
-
319
-
320
- <div class="method-description">
321
-
322
- <p>Takes the array of setlist items and create SetLists</p>
323
-
324
-
325
-
326
- <div class="method-source-code" id="parse_setlist_items-source">
327
- <pre><span class="ruby-comment"># File lib/songkickr/setlist.rb, line 36</span>
328
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">parse_setlist_items</span>(<span class="ruby-identifier">setlist_item_array</span> = <span class="ruby-keyword">nil</span>)
329
- <span class="ruby-identifier">setlist_items</span> = []
330
- <span class="ruby-keyword">if</span> <span class="ruby-identifier">setlist_item_array</span>
331
- <span class="ruby-identifier">setlist_item_array</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">item</span><span class="ruby-operator">|</span>
332
- <span class="ruby-identifier">setlist_items</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">Songkickr</span><span class="ruby-operator">::</span><span class="ruby-constant">SetlistItem</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">item</span>)
333
- <span class="ruby-keyword">end</span>
334
- <span class="ruby-keyword">end</span>
335
-
336
- <span class="ruby-identifier">setlist_items</span>
337
- <span class="ruby-keyword">end</span></pre>
338
- </div><!-- parse_setlist_items-source -->
339
-
340
- </div>
341
-
342
-
343
-
344
-
345
- </div><!-- parse_setlist_items-method -->
346
-
347
-
348
- </section><!-- protected-instance-method-details -->
349
-
350
- </section><!-- 5Buntitled-5D -->
351
-
352
- </div><!-- documentation -->
353
-
354
-
355
- <footer id="validator-badges">
356
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
357
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
358
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
359
- </footer>
360
-
@@ -1,244 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
-
7
- <title>class Songkickr::SetlistItem - RDoc Documentation</title>
8
-
9
- <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
-
11
- <script type="text/javascript">
12
- var rdoc_rel_prefix = "../";
13
- </script>
14
-
15
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
- <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
- <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
- <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
- <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
- <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
-
22
-
23
- <body id="top" class="class">
24
- <nav id="metadata">
25
- <nav id="home-section" class="section">
26
- <h3 class="section-header">
27
- <a href="../index.html">Home</a>
28
- <a href="../table_of_contents.html#classes">Classes</a>
29
- <a href="../table_of_contents.html#methods">Methods</a>
30
- </h3>
31
- </nav>
32
-
33
-
34
- <nav id="search-section" class="section project-section" class="initially-hidden">
35
- <form action="#" method="get" accept-charset="utf-8">
36
- <h3 class="section-header">
37
- <input type="text" name="search" placeholder="Search" id="search-field"
38
- title="Type to search, Up and Down to navigate, Enter to load">
39
- </h3>
40
- </form>
41
-
42
- <ul id="search-results" class="initially-hidden"></ul>
43
- </nav>
44
-
45
-
46
- <div id="file-metadata">
47
- <nav id="file-list-section" class="section">
48
- <h3 class="section-header">Defined In</h3>
49
- <ul>
50
- <li>lib/songkickr/setlist_item.rb
51
- </ul>
52
- </nav>
53
-
54
-
55
- </div>
56
-
57
- <div id="class-metadata">
58
-
59
- <nav id="parent-class-section" class="section">
60
- <h3 class="section-header">Parent</h3>
61
-
62
- <p class="link">Object
63
-
64
- </nav>
65
-
66
-
67
- <!-- Method Quickref -->
68
- <nav id="method-list-section" class="section">
69
- <h3 class="section-header">Methods</h3>
70
-
71
- <ul class="link-list">
72
-
73
- <li><a href="#method-c-new">::new</a>
74
-
75
- </ul>
76
- </nav>
77
-
78
- </div>
79
-
80
- <div id="project-metadata">
81
- <nav id="fileindex-section" class="section project-section">
82
- <h3 class="section-header">Pages</h3>
83
-
84
- <ul>
85
-
86
- <li class="file"><a href="../LICENSE.html">LICENSE</a>
87
-
88
- <li class="file"><a href="../README_rdoc.html">README</a>
89
-
90
- </ul>
91
- </nav>
92
-
93
- <nav id="classindex-section" class="section project-section">
94
- <h3 class="section-header">Class and Module Index</h3>
95
-
96
- <ul class="link-list">
97
-
98
- <li><a href="../Songkickr.html">Songkickr</a>
99
-
100
- <li><a href="../Songkickr/Artist.html">Songkickr::Artist</a>
101
-
102
- <li><a href="../Songkickr/ArtistResult.html">Songkickr::ArtistResult</a>
103
-
104
- <li><a href="../Songkickr/ConcertSetlistResult.html">Songkickr::ConcertSetlistResult</a>
105
-
106
- <li><a href="../Songkickr/Event.html">Songkickr::Event</a>
107
-
108
- <li><a href="../Songkickr/EventResult.html">Songkickr::EventResult</a>
109
-
110
- <li><a href="../Songkickr/Location.html">Songkickr::Location</a>
111
-
112
- <li><a href="../Songkickr/LocationResult.html">Songkickr::LocationResult</a>
113
-
114
- <li><a href="../Songkickr/Performance.html">Songkickr::Performance</a>
115
-
116
- <li><a href="../Songkickr/Remote.html">Songkickr::Remote</a>
117
-
118
- <li><a href="../Songkickr/Setlist.html">Songkickr::Setlist</a>
119
-
120
- <li><a href="../Songkickr/SetlistItem.html">Songkickr::SetlistItem</a>
121
-
122
- <li><a href="../Songkickr/Venue.html">Songkickr::Venue</a>
123
-
124
- <li><a href="../APIError.html">APIError</a>
125
-
126
- <li><a href="../APIKeyNotSet.html">APIKeyNotSet</a>
127
-
128
- <li><a href="../ResourceNotFound.html">ResourceNotFound</a>
129
-
130
- </ul>
131
- </nav>
132
-
133
- </div>
134
- </nav>
135
-
136
- <div id="documentation">
137
- <h1 class="class">class Songkickr::SetlistItem</h1>
138
-
139
- <div id="description" class="description">
140
-
141
- <p>A single set list item.</p>
142
-
143
- <pre>{
144
- encore: 0
145
- name: &quot;Anti Matter &quot;
146
- }</pre>
147
-
148
- </div><!-- description -->
149
-
150
-
151
-
152
-
153
- <section id="5Buntitled-5D" class="documentation-section">
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
- <!-- Attributes -->
162
- <section id="attribute-method-details" class="method-section section">
163
- <h3 class="section-header">Attributes</h3>
164
-
165
-
166
- <div id="attribute-i-encore" class="method-detail">
167
- <div class="method-heading attribute-method-heading">
168
- <span class="method-name">encore</span><span
169
- class="attribute-access-type">[RW]</span>
170
- </div>
171
-
172
- <div class="method-description">
173
-
174
-
175
-
176
- </div>
177
- </div>
178
-
179
- <div id="attribute-i-name" class="method-detail">
180
- <div class="method-heading attribute-method-heading">
181
- <span class="method-name">name</span><span
182
- class="attribute-access-type">[RW]</span>
183
- </div>
184
-
185
- <div class="method-description">
186
-
187
-
188
-
189
- </div>
190
- </div>
191
-
192
- </section><!-- attribute-method-details -->
193
-
194
-
195
- <!-- Methods -->
196
-
197
- <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
198
- <h3 class="section-header">Public Class Methods</h3>
199
-
200
-
201
- <div id="method-c-new" class="method-detail ">
202
-
203
- <div class="method-heading">
204
- <span class="method-name">new</span><span
205
- class="method-args">(setlist_item_hash)</span>
206
- <span class="method-click-advice">click to toggle source</span>
207
- </div>
208
-
209
-
210
- <div class="method-description">
211
-
212
- <p>Takes the set list item hash and parses a boolean out for encore.</p>
213
-
214
-
215
-
216
- <div class="method-source-code" id="new-source">
217
- <pre><span class="ruby-comment"># File lib/songkickr/setlist_item.rb, line 11</span>
218
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">setlist_item_hash</span>)
219
- <span class="ruby-ivar">@encore</span> = <span class="ruby-operator">!</span><span class="ruby-operator">!</span><span class="ruby-identifier">setlist_item_hash</span>[<span class="ruby-string">&quot;encore&quot;</span>]
220
- <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">setlist_item_hash</span>[<span class="ruby-string">&quot;name&quot;</span>]
221
- <span class="ruby-keyword">end</span></pre>
222
- </div><!-- new-source -->
223
-
224
- </div>
225
-
226
-
227
-
228
-
229
- </div><!-- new-method -->
230
-
231
-
232
- </section><!-- public-class-method-details -->
233
-
234
- </section><!-- 5Buntitled-5D -->
235
-
236
- </div><!-- documentation -->
237
-
238
-
239
- <footer id="validator-badges">
240
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
241
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
242
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
243
- </footer>
244
-