songkickr 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +1 -1
- data/README.rdoc +11 -4
- data/VERSION +1 -1
- data/doc/APIKeyNotSet.html +214 -0
- data/doc/LICENSE.html +133 -0
- data/doc/README_rdoc.html +170 -0
- data/doc/Songkickr/Artist.html +305 -0
- data/doc/Songkickr/ArtistResult.html +334 -0
- data/doc/Songkickr/ConcertSetlistResult.html +301 -0
- data/doc/Songkickr/Event.html +556 -0
- data/doc/Songkickr/EventResult.html +332 -0
- data/doc/Songkickr/Location.html +326 -0
- data/doc/Songkickr/LocationResult.html +335 -0
- data/doc/Songkickr/Performance.html +326 -0
- data/doc/Songkickr/Remote.html +715 -0
- data/doc/Songkickr/Setlist.html +398 -0
- data/doc/Songkickr/SetlistItem.html +263 -0
- data/doc/Songkickr/Venue.html +292 -0
- data/doc/Songkickr.html +328 -0
- data/doc/created.rid +16 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +144 -0
- data/doc/js/darkfish.js +116 -0
- data/doc/js/jquery.js +32 -0
- data/doc/js/quicksearch.js +114 -0
- data/doc/js/thickbox-compressed.js +10 -0
- data/doc/lib/songkickr/artist_rb.html +52 -0
- data/doc/lib/songkickr/artist_result_rb.html +52 -0
- data/doc/lib/songkickr/concert_setlist_result_rb.html +52 -0
- data/doc/lib/songkickr/event_rb.html +52 -0
- data/doc/lib/songkickr/event_result_rb.html +52 -0
- data/doc/lib/songkickr/location_rb.html +52 -0
- data/doc/lib/songkickr/location_result_rb.html +52 -0
- data/doc/lib/songkickr/performance_rb.html +52 -0
- data/doc/lib/songkickr/remote_rb.html +52 -0
- data/doc/lib/songkickr/setlist_item_rb.html +52 -0
- data/doc/lib/songkickr/setlist_rb.html +52 -0
- data/doc/lib/songkickr/venue_rb.html +52 -0
- data/doc/lib/songkickr_rb.html +56 -0
- data/doc/rdoc.css +759 -0
- data/lib/songkickr/artist.rb +17 -6
- data/lib/songkickr/artist_result.rb +25 -22
- data/lib/songkickr/concert_setlist_result.rb +6 -2
- data/lib/songkickr/event.rb +42 -3
- data/lib/songkickr/event_result.rb +3 -1
- data/lib/songkickr/location.rb +28 -3
- data/lib/songkickr/location_result.rb +8 -3
- data/lib/songkickr/performance.rb +20 -4
- data/lib/songkickr/remote.rb +102 -60
- data/lib/songkickr/setlist.rb +20 -0
- data/lib/songkickr/setlist_item.rb +6 -0
- data/lib/songkickr.rb +16 -3
- data/songkickr.gemspec +60 -12
- data/test.rb +12 -11
- metadata +66 -13
@@ -0,0 +1,335 @@
|
|
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::LocationResult</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/location_result_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/songkickr/location_result.rb">lib/songkickr/location_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::LocationResult</h1>
|
147
|
+
|
148
|
+
<div id="description" class="description">
|
149
|
+
|
150
|
+
<p>TODO: very similar to concert_setlist_result, event_result, and
|
151
|
+
artist_result, extract common stuff to module/superclass</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 locations into <a
|
243
|
+
href="Location.html">Location</a> objects.</p>
|
244
|
+
|
245
|
+
<p>Returns an array of Locations.</p>
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
<div class="method-source-code" id="parse_results-source">
|
250
|
+
<pre>
|
251
|
+
<span class="ruby-comment"># File lib/songkickr/location_result.rb, line 25</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">locations</span> = []
|
254
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">results</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-string">"location"</span>)
|
255
|
+
<span class="ruby-identifier">results</span>[<span class="ruby-string">"location"</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">location</span><span class="ruby-operator">|</span>
|
256
|
+
<span class="ruby-identifier">locations</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">Songkickr</span><span class="ruby-operator">::</span><span class="ruby-constant">Location</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">location</span>)
|
257
|
+
<span class="ruby-keyword">end</span>
|
258
|
+
<span class="ruby-keyword">end</span>
|
259
|
+
|
260
|
+
<span class="ruby-identifier">locations</span>
|
261
|
+
<span class="ruby-keyword">end</span></pre>
|
262
|
+
</div><!-- parse_results-source -->
|
263
|
+
|
264
|
+
</div>
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
</div><!-- parse_results-method -->
|
270
|
+
|
271
|
+
|
272
|
+
</div><!-- protected-instance-method-details -->
|
273
|
+
|
274
|
+
<div id="public-class-method-details" class="method-section section">
|
275
|
+
<h3 class="section-header">Public Class Methods</h3>
|
276
|
+
|
277
|
+
|
278
|
+
<div id="new-method" class="method-detail ">
|
279
|
+
<a name="method-c-new"></a>
|
280
|
+
|
281
|
+
|
282
|
+
<div class="method-heading">
|
283
|
+
<span class="method-name">new</span><span
|
284
|
+
class="method-args">(result_hash = {})</span>
|
285
|
+
<span class="method-click-advice">click to toggle source</span>
|
286
|
+
</div>
|
287
|
+
|
288
|
+
|
289
|
+
<div class="method-description">
|
290
|
+
|
291
|
+
<p>Takes the result hash directly and parses out the page and total entries
|
292
|
+
and finally passes off to the <a
|
293
|
+
href="LocationResult.html#method-i-parse_results">parse_results</a> method
|
294
|
+
to get the results.</p>
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
<div class="method-source-code" id="new-source">
|
299
|
+
<pre>
|
300
|
+
<span class="ruby-comment"># File lib/songkickr/location_result.rb, line 9</span>
|
301
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">result_hash</span> = {})
|
302
|
+
<span class="ruby-identifier">results_page</span> = <span class="ruby-identifier">result_hash</span>[<span class="ruby-string">"resultsPage"</span>]
|
303
|
+
|
304
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">results_page</span>
|
305
|
+
<span class="ruby-ivar">@page</span> = <span class="ruby-identifier">results_page</span>[<span class="ruby-string">"page"</span>]
|
306
|
+
<span class="ruby-ivar">@total_entries</span> = <span class="ruby-identifier">results_page</span>[<span class="ruby-string">"totalEntries"</span>]
|
307
|
+
<span class="ruby-ivar">@results</span> = <span class="ruby-identifier">parse_results</span> <span class="ruby-identifier">results_page</span>[<span class="ruby-string">"results"</span>]
|
308
|
+
<span class="ruby-keyword">end</span>
|
309
|
+
<span class="ruby-keyword">end</span></pre>
|
310
|
+
</div><!-- new-source -->
|
311
|
+
|
312
|
+
</div>
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
</div><!-- new-method -->
|
318
|
+
|
319
|
+
|
320
|
+
</div><!-- public-class-method-details -->
|
321
|
+
|
322
|
+
</div><!-- 5Buntitled-5D -->
|
323
|
+
|
324
|
+
|
325
|
+
</div><!-- documentation -->
|
326
|
+
|
327
|
+
<div id="validator-badges">
|
328
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
329
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
330
|
+
Rdoc Generator</a> 2</small>.</p>
|
331
|
+
</div>
|
332
|
+
|
333
|
+
</body>
|
334
|
+
</html>
|
335
|
+
|
@@ -0,0 +1,326 @@
|
|
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::Performance</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/performance_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/songkickr/performance.rb">lib/songkickr/performance.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::Performance</h1>
|
145
|
+
|
146
|
+
<div id="description" class="description">
|
147
|
+
|
148
|
+
<p>A single performance by an artist.</p>
|
149
|
+
|
150
|
+
<pre>{
|
151
|
+
"artist": {
|
152
|
+
"uri": "http://www.songkick.com/artists/288696-vampire-weekend",
|
153
|
+
"displayName": "Vampire Weekend",
|
154
|
+
"id": 288696,
|
155
|
+
"identifier": [{"mbid": "af37c51c-0790-4a29-b995-456f98a6b8c9"}]
|
156
|
+
}
|
157
|
+
"displayName": "Vampire Weekend",
|
158
|
+
"billingIndex": 1,
|
159
|
+
"id": 5380281,
|
160
|
+
"billing": "headline"
|
161
|
+
}</pre>
|
162
|
+
|
163
|
+
</div><!-- description -->
|
164
|
+
|
165
|
+
|
166
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
<!-- Attributes -->
|
175
|
+
<div id="attribute-method-details" class="method-section section">
|
176
|
+
<h3 class="section-header">Attributes</h3>
|
177
|
+
|
178
|
+
|
179
|
+
<div id="artist-attribute-method" class="method-detail">
|
180
|
+
<a name="artist"></a>
|
181
|
+
|
182
|
+
<a name="artist="></a>
|
183
|
+
|
184
|
+
<div class="method-heading attribute-method-heading">
|
185
|
+
<span class="method-name">artist</span><span
|
186
|
+
class="attribute-access-type">[RW]</span>
|
187
|
+
</div>
|
188
|
+
|
189
|
+
<div class="method-description">
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
</div>
|
194
|
+
</div>
|
195
|
+
|
196
|
+
<div id="billing-attribute-method" class="method-detail">
|
197
|
+
<a name="billing"></a>
|
198
|
+
|
199
|
+
<a name="billing="></a>
|
200
|
+
|
201
|
+
<div class="method-heading attribute-method-heading">
|
202
|
+
<span class="method-name">billing</span><span
|
203
|
+
class="attribute-access-type">[RW]</span>
|
204
|
+
</div>
|
205
|
+
|
206
|
+
<div class="method-description">
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
</div>
|
211
|
+
</div>
|
212
|
+
|
213
|
+
<div id="billing_index-attribute-method" class="method-detail">
|
214
|
+
<a name="billing_index"></a>
|
215
|
+
|
216
|
+
<a name="billing_index="></a>
|
217
|
+
|
218
|
+
<div class="method-heading attribute-method-heading">
|
219
|
+
<span class="method-name">billing_index</span><span
|
220
|
+
class="attribute-access-type">[RW]</span>
|
221
|
+
</div>
|
222
|
+
|
223
|
+
<div class="method-description">
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
</div>
|
228
|
+
</div>
|
229
|
+
|
230
|
+
<div id="display_name-attribute-method" class="method-detail">
|
231
|
+
<a name="display_name"></a>
|
232
|
+
|
233
|
+
<a name="display_name="></a>
|
234
|
+
|
235
|
+
<div class="method-heading attribute-method-heading">
|
236
|
+
<span class="method-name">display_name</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="id-attribute-method" class="method-detail">
|
248
|
+
<a name="id"></a>
|
249
|
+
|
250
|
+
<a name="id="></a>
|
251
|
+
|
252
|
+
<div class="method-heading attribute-method-heading">
|
253
|
+
<span class="method-name">id</span><span
|
254
|
+
class="attribute-access-type">[RW]</span>
|
255
|
+
</div>
|
256
|
+
|
257
|
+
<div class="method-description">
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
</div>
|
262
|
+
</div>
|
263
|
+
|
264
|
+
</div><!-- attribute-method-details -->
|
265
|
+
|
266
|
+
|
267
|
+
<!-- Methods -->
|
268
|
+
|
269
|
+
<div id="public-class-method-details" class="method-section section">
|
270
|
+
<h3 class="section-header">Public Class Methods</h3>
|
271
|
+
|
272
|
+
|
273
|
+
<div id="new-method" class="method-detail ">
|
274
|
+
<a name="method-c-new"></a>
|
275
|
+
|
276
|
+
|
277
|
+
<div class="method-heading">
|
278
|
+
<span class="method-name">new</span><span
|
279
|
+
class="method-args">(performance_hash)</span>
|
280
|
+
<span class="method-click-advice">click to toggle source</span>
|
281
|
+
</div>
|
282
|
+
|
283
|
+
|
284
|
+
<div class="method-description">
|
285
|
+
|
286
|
+
<p>Takes a the hash of the performance. Parses out an <a
|
287
|
+
href="Artist.html">Artist</a> object for the artist.</p>
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
<div class="method-source-code" id="new-source">
|
292
|
+
<pre>
|
293
|
+
<span class="ruby-comment"># File lib/songkickr/performance.rb, line 19</span>
|
294
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">performance_hash</span>)
|
295
|
+
<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">performance_hash</span>[<span class="ruby-string">"artist"</span>]
|
296
|
+
<span class="ruby-ivar">@display_name</span> = <span class="ruby-identifier">performance_hash</span>[<span class="ruby-string">"displayName"</span>]
|
297
|
+
<span class="ruby-ivar">@id</span> = <span class="ruby-identifier">performance_hash</span>[<span class="ruby-string">"id"</span>]
|
298
|
+
<span class="ruby-ivar">@billing_index</span> = <span class="ruby-identifier">performance_hash</span>[<span class="ruby-string">'billingIndex'</span>]
|
299
|
+
<span class="ruby-ivar">@billin</span> = <span class="ruby-identifier">performance_hash</span>[<span class="ruby-string">'billing'</span>]
|
300
|
+
<span class="ruby-keyword">end</span></pre>
|
301
|
+
</div><!-- new-source -->
|
302
|
+
|
303
|
+
</div>
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
</div><!-- new-method -->
|
309
|
+
|
310
|
+
|
311
|
+
</div><!-- public-class-method-details -->
|
312
|
+
|
313
|
+
</div><!-- 5Buntitled-5D -->
|
314
|
+
|
315
|
+
|
316
|
+
</div><!-- documentation -->
|
317
|
+
|
318
|
+
<div id="validator-badges">
|
319
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
320
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
321
|
+
Rdoc Generator</a> 2</small>.</p>
|
322
|
+
</div>
|
323
|
+
|
324
|
+
</body>
|
325
|
+
</html>
|
326
|
+
|