songkickr 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +6 -2
- data/Gemfile.lock +32 -10
- data/README.rdoc +7 -7
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/bin/autospec +16 -0
- data/bin/convert_to_should_syntax +16 -0
- data/bin/guard +16 -0
- data/bin/htmldiff +16 -0
- data/bin/httparty +16 -0
- data/bin/jeweler +16 -0
- data/bin/ldiff +16 -0
- data/bin/rake +16 -0
- data/bin/rake2thor +16 -0
- data/bin/rg +16 -0
- data/bin/ri +16 -0
- data/bin/rspec +16 -0
- data/bin/thor +16 -0
- data/doc/APIError.html +241 -0
- data/doc/APIKeyNotSet.html +164 -175
- data/doc/LICENSE.html +109 -109
- data/doc/README_rdoc.html +120 -117
- data/doc/ResourceNotFound.html +203 -0
- data/doc/Songkickr/Artist.html +210 -237
- data/doc/Songkickr/ArtistResult.html +228 -254
- data/doc/Songkickr/ConcertSetlistResult.html +205 -223
- data/doc/Songkickr/Event.html +344 -409
- data/doc/Songkickr/EventResult.html +226 -252
- data/doc/Songkickr/Location.html +210 -237
- data/doc/Songkickr/LocationResult.html +229 -255
- data/doc/Songkickr/Performance.html +222 -253
- data/doc/Songkickr/Remote.html +630 -481
- data/doc/Songkickr/Setlist.html +258 -296
- data/doc/Songkickr/SetlistItem.html +187 -206
- data/doc/Songkickr/Venue.html +205 -232
- data/doc/Songkickr.html +204 -271
- data/doc/created.rid +16 -16
- data/doc/images/add.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/index.html +93 -127
- data/doc/js/darkfish.js +99 -62
- data/doc/js/jquery.js +15 -29
- data/doc/js/navigation.js +142 -0
- data/doc/js/search.js +94 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/rdoc.css +119 -339
- data/doc/table_of_contents.html +185 -0
- data/lib/songkickr/artist.rb +3 -3
- data/lib/songkickr/remote.rb +36 -13
- data/lib/songkickr.rb +16 -2
- data/songkickr.gemspec +121 -4
- data/test/fixtures/vcr/invalid_api_key.yml +63 -0
- data/test/fixtures/vcr/invalid_event_id.yml +33 -0
- data/test/fixtures/vcr/invalid_user.yml +32 -0
- data/test/fixtures/vcr/invalid_venue_id.yml +33 -0
- data/test/fixtures/vcr/valid_event.yml +52 -0
- data/test/fixtures/vcr/valid_user.yml +71 -0
- data/test/fixtures/vcr/valid_venue.yml +53 -0
- data/test/helper.rb +2 -2
- data/test/songkickr/test_remote.rb +68 -24
- data/test/vcr_helper.rb +7 -0
- data/test.rb +2 -2
- metadata +626 -40
data/doc/Songkickr/Event.html
CHANGED
@@ -1,154 +1,147 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
5
4
|
<head>
|
6
|
-
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
7
6
|
|
8
|
-
|
7
|
+
<title>class Songkickr::Event - RDoc Documentation</title>
|
9
8
|
|
10
|
-
|
9
|
+
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../";
|
13
|
+
</script>
|
16
14
|
|
17
|
-
|
18
|
-
<
|
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>
|
19
21
|
|
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
22
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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/event.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
43
53
|
|
44
|
-
|
45
|
-
|
54
|
+
|
55
|
+
</div>
|
46
56
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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>
|
57
65
|
|
58
|
-
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<nav id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
59
70
|
|
60
|
-
|
71
|
+
<ul class="link-list">
|
72
|
+
|
73
|
+
<li><a href="#method-c-new">::new</a>
|
74
|
+
|
75
|
+
<li><a href="#method-i-parse_performance">#parse_performance</a>
|
76
|
+
|
77
|
+
<li><a href="#method-i-start_hash_to_datetime">#start_hash_to_datetime</a>
|
78
|
+
|
79
|
+
</ul>
|
80
|
+
</nav>
|
61
81
|
|
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_performance">#parse_performance</a></li>
|
71
|
-
|
72
|
-
<li><a href="#method-i-start_hash_to_datetime">#start_hash_to_datetime</a></li>
|
73
|
-
|
74
|
-
</ul>
|
75
|
-
</div>
|
76
|
-
|
82
|
+
</div>
|
77
83
|
|
78
|
-
|
79
|
-
|
84
|
+
<div id="project-metadata">
|
85
|
+
<nav id="fileindex-section" class="section project-section">
|
86
|
+
<h3 class="section-header">Pages</h3>
|
80
87
|
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
|
91
|
-
|
92
|
-
</ul>
|
93
|
-
</div>
|
94
|
-
|
88
|
+
<ul>
|
89
|
+
|
90
|
+
<li class="file"><a href="../LICENSE.html">LICENSE</a>
|
91
|
+
|
92
|
+
<li class="file"><a href="../README_rdoc.html">README</a>
|
93
|
+
|
94
|
+
</ul>
|
95
|
+
</nav>
|
95
96
|
|
96
|
-
|
97
|
-
|
98
|
-
<span class="search-toggle"><img src="../images/find.png"
|
99
|
-
height="16" width="16" alt="[+]"
|
100
|
-
title="show/hide quicksearch" /></span></h3>
|
101
|
-
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
102
|
-
<fieldset>
|
103
|
-
<legend>Quicksearch</legend>
|
104
|
-
<input type="text" name="quicksearch" value=""
|
105
|
-
class="quicksearch-field" />
|
106
|
-
</fieldset>
|
107
|
-
</form>
|
97
|
+
<nav id="classindex-section" class="section project-section">
|
98
|
+
<h3 class="section-header">Class and Module Index</h3>
|
108
99
|
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
100
|
+
<ul class="link-list">
|
101
|
+
|
102
|
+
<li><a href="../Songkickr.html">Songkickr</a>
|
103
|
+
|
104
|
+
<li><a href="../Songkickr/Artist.html">Songkickr::Artist</a>
|
105
|
+
|
106
|
+
<li><a href="../Songkickr/ArtistResult.html">Songkickr::ArtistResult</a>
|
107
|
+
|
108
|
+
<li><a href="../Songkickr/ConcertSetlistResult.html">Songkickr::ConcertSetlistResult</a>
|
109
|
+
|
110
|
+
<li><a href="../Songkickr/Event.html">Songkickr::Event</a>
|
111
|
+
|
112
|
+
<li><a href="../Songkickr/EventResult.html">Songkickr::EventResult</a>
|
113
|
+
|
114
|
+
<li><a href="../Songkickr/Location.html">Songkickr::Location</a>
|
115
|
+
|
116
|
+
<li><a href="../Songkickr/LocationResult.html">Songkickr::LocationResult</a>
|
117
|
+
|
118
|
+
<li><a href="../Songkickr/Performance.html">Songkickr::Performance</a>
|
119
|
+
|
120
|
+
<li><a href="../Songkickr/Remote.html">Songkickr::Remote</a>
|
121
|
+
|
122
|
+
<li><a href="../Songkickr/Setlist.html">Songkickr::Setlist</a>
|
123
|
+
|
124
|
+
<li><a href="../Songkickr/SetlistItem.html">Songkickr::SetlistItem</a>
|
125
|
+
|
126
|
+
<li><a href="../Songkickr/Venue.html">Songkickr::Venue</a>
|
127
|
+
|
128
|
+
<li><a href="../APIError.html">APIError</a>
|
129
|
+
|
130
|
+
<li><a href="../APIKeyNotSet.html">APIKeyNotSet</a>
|
131
|
+
|
132
|
+
<li><a href="../ResourceNotFound.html">ResourceNotFound</a>
|
133
|
+
|
134
|
+
</ul>
|
135
|
+
</nav>
|
142
136
|
|
143
|
-
|
144
|
-
</div>
|
145
137
|
</div>
|
138
|
+
</nav>
|
146
139
|
|
147
|
-
|
148
|
-
|
140
|
+
<div id="documentation">
|
141
|
+
<h1 class="class">class Songkickr::Event</h1>
|
149
142
|
|
150
|
-
|
151
|
-
|
143
|
+
<div id="description" class="description">
|
144
|
+
|
152
145
|
<p>A single event</p>
|
153
146
|
|
154
147
|
<pre>{
|
@@ -188,255 +181,206 @@
|
|
188
181
|
<p><a
|
189
182
|
href="http://www.songkick.com/developer/artist-search">www.songkick.com/developer/artist-search</a></p>
|
190
183
|
|
191
|
-
|
184
|
+
</div><!-- description -->
|
192
185
|
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
193
190
|
|
194
|
-
<div id="5Buntitled-5D" class="documentation-section">
|
195
|
-
|
196
191
|
|
197
|
-
|
192
|
+
|
198
193
|
|
199
|
-
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
<!-- Attributes -->
|
198
|
+
<section id="attribute-method-details" class="method-section section">
|
199
|
+
<h3 class="section-header">Attributes</h3>
|
200
200
|
|
201
201
|
|
202
|
-
|
203
|
-
|
204
|
-
|
202
|
+
<div id="attribute-i-display_name" class="method-detail">
|
203
|
+
<div class="method-heading attribute-method-heading">
|
204
|
+
<span class="method-name">display_name</span><span
|
205
|
+
class="attribute-access-type">[RW]</span>
|
206
|
+
</div>
|
205
207
|
|
208
|
+
<div class="method-description">
|
206
209
|
|
207
|
-
<div id="display_name-attribute-method" class="method-detail">
|
208
|
-
<a name="display_name"></a>
|
209
|
-
|
210
|
-
<a name="display_name="></a>
|
211
|
-
|
212
|
-
<div class="method-heading attribute-method-heading">
|
213
|
-
<span class="method-name">display_name</span><span
|
214
|
-
class="attribute-access-type">[RW]</span>
|
215
|
-
</div>
|
216
|
-
|
217
|
-
<div class="method-description">
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
</div>
|
222
|
-
</div>
|
223
210
|
|
224
|
-
<div id="id-attribute-method" class="method-detail">
|
225
|
-
<a name="id"></a>
|
226
|
-
|
227
|
-
<a name="id="></a>
|
228
|
-
|
229
|
-
<div class="method-heading attribute-method-heading">
|
230
|
-
<span class="method-name">id</span><span
|
231
|
-
class="attribute-access-type">[RW]</span>
|
232
|
-
</div>
|
233
|
-
|
234
|
-
<div class="method-description">
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
</div>
|
239
|
-
</div>
|
240
211
|
|
241
|
-
<div id="lat-attribute-method" class="method-detail">
|
242
|
-
<a name="lat"></a>
|
243
|
-
|
244
|
-
<a name="lat="></a>
|
245
|
-
|
246
|
-
<div class="method-heading attribute-method-heading">
|
247
|
-
<span class="method-name">lat</span><span
|
248
|
-
class="attribute-access-type">[RW]</span>
|
249
|
-
</div>
|
250
|
-
|
251
|
-
<div class="method-description">
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
</div>
|
256
212
|
</div>
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
<
|
262
|
-
|
263
|
-
<div class="method-heading attribute-method-heading">
|
264
|
-
<span class="method-name">lng</span><span
|
265
|
-
class="attribute-access-type">[RW]</span>
|
266
|
-
</div>
|
267
|
-
|
268
|
-
<div class="method-description">
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
</div>
|
213
|
+
</div>
|
214
|
+
|
215
|
+
<div id="attribute-i-id" class="method-detail">
|
216
|
+
<div class="method-heading attribute-method-heading">
|
217
|
+
<span class="method-name">id</span><span
|
218
|
+
class="attribute-access-type">[RW]</span>
|
273
219
|
</div>
|
274
|
-
|
275
|
-
<div id="location-attribute-method" class="method-detail">
|
276
|
-
<a name="location"></a>
|
277
|
-
|
278
|
-
<a name="location="></a>
|
279
|
-
|
280
|
-
<div class="method-heading attribute-method-heading">
|
281
|
-
<span class="method-name">location</span><span
|
282
|
-
class="attribute-access-type">[RW]</span>
|
283
|
-
</div>
|
284
220
|
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
</div>
|
290
|
-
</div>
|
221
|
+
<div class="method-description">
|
291
222
|
|
292
|
-
<div id="performances-attribute-method" class="method-detail">
|
293
|
-
<a name="performances"></a>
|
294
|
-
|
295
|
-
<a name="performances="></a>
|
296
|
-
|
297
|
-
<div class="method-heading attribute-method-heading">
|
298
|
-
<span class="method-name">performances</span><span
|
299
|
-
class="attribute-access-type">[RW]</span>
|
300
|
-
</div>
|
301
|
-
|
302
|
-
<div class="method-description">
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
</div>
|
307
|
-
</div>
|
308
223
|
|
309
|
-
<div id="start-attribute-method" class="method-detail">
|
310
|
-
<a name="start"></a>
|
311
|
-
|
312
|
-
<a name="start="></a>
|
313
|
-
|
314
|
-
<div class="method-heading attribute-method-heading">
|
315
|
-
<span class="method-name">start</span><span
|
316
|
-
class="attribute-access-type">[RW]</span>
|
317
|
-
</div>
|
318
|
-
|
319
|
-
<div class="method-description">
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
</div>
|
324
|
-
</div>
|
325
224
|
|
326
|
-
<div id="status-attribute-method" class="method-detail">
|
327
|
-
<a name="status"></a>
|
328
|
-
|
329
|
-
<a name="status="></a>
|
330
|
-
|
331
|
-
<div class="method-heading attribute-method-heading">
|
332
|
-
<span class="method-name">status</span><span
|
333
|
-
class="attribute-access-type">[RW]</span>
|
334
|
-
</div>
|
335
|
-
|
336
|
-
<div class="method-description">
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
</div>
|
341
225
|
</div>
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
<
|
347
|
-
|
348
|
-
|
349
|
-
<span class="method-name">tickets_uri</span><span
|
350
|
-
class="attribute-access-type">[RW]</span>
|
351
|
-
</div>
|
226
|
+
</div>
|
227
|
+
|
228
|
+
<div id="attribute-i-lat" class="method-detail">
|
229
|
+
<div class="method-heading attribute-method-heading">
|
230
|
+
<span class="method-name">lat</span><span
|
231
|
+
class="attribute-access-type">[RW]</span>
|
232
|
+
</div>
|
352
233
|
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
</div>
|
234
|
+
<div class="method-description">
|
235
|
+
|
236
|
+
|
237
|
+
|
358
238
|
</div>
|
239
|
+
</div>
|
240
|
+
|
241
|
+
<div id="attribute-i-lng" class="method-detail">
|
242
|
+
<div class="method-heading attribute-method-heading">
|
243
|
+
<span class="method-name">lng</span><span
|
244
|
+
class="attribute-access-type">[RW]</span>
|
245
|
+
</div>
|
246
|
+
|
247
|
+
<div class="method-description">
|
359
248
|
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
249
|
+
|
250
|
+
|
251
|
+
</div>
|
252
|
+
</div>
|
253
|
+
|
254
|
+
<div id="attribute-i-location" class="method-detail">
|
255
|
+
<div class="method-heading attribute-method-heading">
|
256
|
+
<span class="method-name">location</span><span
|
257
|
+
class="attribute-access-type">[RW]</span>
|
258
|
+
</div>
|
369
259
|
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
260
|
+
<div class="method-description">
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
</div>
|
265
|
+
</div>
|
266
|
+
|
267
|
+
<div id="attribute-i-performances" class="method-detail">
|
268
|
+
<div class="method-heading attribute-method-heading">
|
269
|
+
<span class="method-name">performances</span><span
|
270
|
+
class="attribute-access-type">[RW]</span>
|
375
271
|
</div>
|
272
|
+
|
273
|
+
<div class="method-description">
|
376
274
|
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
275
|
+
|
276
|
+
|
277
|
+
</div>
|
278
|
+
</div>
|
279
|
+
|
280
|
+
<div id="attribute-i-start" class="method-detail">
|
281
|
+
<div class="method-heading attribute-method-heading">
|
282
|
+
<span class="method-name">start</span><span
|
283
|
+
class="attribute-access-type">[RW]</span>
|
284
|
+
</div>
|
386
285
|
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
286
|
+
<div class="method-description">
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
</div>
|
291
|
+
</div>
|
292
|
+
|
293
|
+
<div id="attribute-i-status" class="method-detail">
|
294
|
+
<div class="method-heading attribute-method-heading">
|
295
|
+
<span class="method-name">status</span><span
|
296
|
+
class="attribute-access-type">[RW]</span>
|
392
297
|
</div>
|
298
|
+
|
299
|
+
<div class="method-description">
|
393
300
|
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
301
|
+
|
302
|
+
|
303
|
+
</div>
|
304
|
+
</div>
|
305
|
+
|
306
|
+
<div id="attribute-i-tickets_uri" class="method-detail">
|
307
|
+
<div class="method-heading attribute-method-heading">
|
308
|
+
<span class="method-name">tickets_uri</span><span
|
309
|
+
class="attribute-access-type">[RW]</span>
|
310
|
+
</div>
|
403
311
|
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
</div>
|
312
|
+
<div class="method-description">
|
313
|
+
|
314
|
+
|
315
|
+
|
409
316
|
</div>
|
317
|
+
</div>
|
318
|
+
|
319
|
+
<div id="attribute-i-type" class="method-detail">
|
320
|
+
<div class="method-heading attribute-method-heading">
|
321
|
+
<span class="method-name">type</span><span
|
322
|
+
class="attribute-access-type">[RW]</span>
|
323
|
+
</div>
|
324
|
+
|
325
|
+
<div class="method-description">
|
326
|
+
|
327
|
+
|
410
328
|
|
411
|
-
|
329
|
+
</div>
|
330
|
+
</div>
|
412
331
|
|
332
|
+
<div id="attribute-i-uri" class="method-detail">
|
333
|
+
<div class="method-heading attribute-method-heading">
|
334
|
+
<span class="method-name">uri</span><span
|
335
|
+
class="attribute-access-type">[RW]</span>
|
336
|
+
</div>
|
413
337
|
|
414
|
-
|
338
|
+
<div class="method-description">
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
</div>
|
343
|
+
</div>
|
415
344
|
|
416
|
-
<div id="
|
417
|
-
<
|
345
|
+
<div id="attribute-i-venue" class="method-detail">
|
346
|
+
<div class="method-heading attribute-method-heading">
|
347
|
+
<span class="method-name">venue</span><span
|
348
|
+
class="attribute-access-type">[RW]</span>
|
349
|
+
</div>
|
418
350
|
|
351
|
+
<div class="method-description">
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
</div>
|
356
|
+
</div>
|
419
357
|
|
420
|
-
|
421
|
-
|
358
|
+
</section><!-- attribute-method-details -->
|
359
|
+
|
360
|
+
|
361
|
+
<!-- Methods -->
|
362
|
+
|
363
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
364
|
+
<h3 class="section-header">Public Class Methods</h3>
|
422
365
|
|
366
|
+
|
367
|
+
<div id="method-c-new" class="method-detail ">
|
368
|
+
|
369
|
+
<div class="method-heading">
|
370
|
+
<span class="method-name">new</span><span
|
371
|
+
class="method-args">(event_hash)</span>
|
372
|
+
<span class="method-click-advice">click to toggle source</span>
|
373
|
+
</div>
|
374
|
+
|
375
|
+
|
376
|
+
<div class="method-description">
|
377
|
+
|
423
378
|
|
424
|
-
<div class="method-heading">
|
425
|
-
<span class="method-name">new</span><span
|
426
|
-
class="method-args">(event_hash)</span>
|
427
|
-
<span class="method-click-advice">click to toggle source</span>
|
428
|
-
</div>
|
429
379
|
|
430
380
|
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
<div class="method-source-code" id="new-source">
|
438
|
-
<pre>
|
439
|
-
<span class="ruby-comment"># File lib/songkickr/event.rb, line 42</span>
|
381
|
+
|
382
|
+
<div class="method-source-code" id="new-source">
|
383
|
+
<pre><span class="ruby-comment"># File lib/songkickr/event.rb, line 42</span>
|
440
384
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">event_hash</span>)
|
441
385
|
<span class="ruby-ivar">@type</span> = <span class="ruby-identifier">event_hash</span>[<span class="ruby-string">"type"</span>]
|
442
386
|
<span class="ruby-ivar">@location</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">event_hash</span>[<span class="ruby-string">"location"</span>]
|
@@ -449,42 +393,39 @@ href="http://www.songkick.com/developer/artist-search">www.songkick.com/develope
|
|
449
393
|
<span class="ruby-ivar">@id</span> = <span class="ruby-identifier">event_hash</span>[<span class="ruby-string">"id"</span>]
|
450
394
|
<span class="ruby-ivar">@tickets_uri</span> = <span class="ruby-identifier">event_hash</span>[<span class="ruby-string">"ticketsUri"</span>]
|
451
395
|
<span class="ruby-keyword">end</span></pre>
|
452
|
-
|
453
|
-
|
454
|
-
</div>
|
455
|
-
|
396
|
+
</div><!-- new-source -->
|
456
397
|
|
398
|
+
</div>
|
457
399
|
|
458
|
-
|
459
|
-
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
</div><!-- new-method -->
|
460
404
|
|
461
|
-
|
462
|
-
</div><!-- public-class-method-details -->
|
463
405
|
|
464
|
-
|
465
|
-
|
406
|
+
</section><!-- public-class-method-details -->
|
407
|
+
|
408
|
+
<section id="protected-instance-5Buntitled-5D-method-details" class="method-section section">
|
409
|
+
<h3 class="section-header">Protected Instance Methods</h3>
|
466
410
|
|
467
|
-
|
468
|
-
|
469
|
-
|
411
|
+
|
412
|
+
<div id="method-i-parse_performance" class="method-detail ">
|
413
|
+
|
414
|
+
<div class="method-heading">
|
415
|
+
<span class="method-name">parse_performance</span><span
|
416
|
+
class="method-args">(performance_array = nil)</span>
|
417
|
+
<span class="method-click-advice">click to toggle source</span>
|
418
|
+
</div>
|
419
|
+
|
470
420
|
|
421
|
+
<div class="method-description">
|
471
422
|
|
472
|
-
<
|
473
|
-
<span class="method-name">parse_performance</span><span
|
474
|
-
class="method-args">(performance_array = nil)</span>
|
475
|
-
<span class="method-click-advice">click to toggle source</span>
|
476
|
-
</div>
|
423
|
+
<p>Builds a list of <a href="Performance.html">Performance</a> objects.</p>
|
477
424
|
|
478
425
|
|
479
|
-
|
480
|
-
|
481
|
-
<
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
<div class="method-source-code" id="parse_performance-source">
|
486
|
-
<pre>
|
487
|
-
<span class="ruby-comment"># File lib/songkickr/event.rb, line 63</span>
|
426
|
+
|
427
|
+
<div class="method-source-code" id="parse_performance-source">
|
428
|
+
<pre><span class="ruby-comment"># File lib/songkickr/event.rb, line 63</span>
|
488
429
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">parse_performance</span>(<span class="ruby-identifier">performance_array</span> = <span class="ruby-keyword">nil</span>)
|
489
430
|
<span class="ruby-identifier">performances</span> = []
|
490
431
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">performance_array</span>
|
@@ -495,62 +436,56 @@ href="http://www.songkick.com/developer/artist-search">www.songkick.com/develope
|
|
495
436
|
|
496
437
|
<span class="ruby-identifier">performances</span>
|
497
438
|
<span class="ruby-keyword">end</span></pre>
|
498
|
-
|
499
|
-
|
500
|
-
</div>
|
501
|
-
|
439
|
+
</div><!-- parse_performance-source -->
|
502
440
|
|
441
|
+
</div>
|
503
442
|
|
504
|
-
|
505
|
-
</div><!-- parse_performance-method -->
|
443
|
+
|
506
444
|
|
507
|
-
|
508
|
-
|
509
|
-
<a name="method-i-start_hash_to_datetime"></a>
|
445
|
+
|
446
|
+
</div><!-- parse_performance-method -->
|
510
447
|
|
448
|
+
|
449
|
+
<div id="method-i-start_hash_to_datetime" class="method-detail ">
|
450
|
+
|
451
|
+
<div class="method-heading">
|
452
|
+
<span class="method-name">start_hash_to_datetime</span><span
|
453
|
+
class="method-args">(start_hash)</span>
|
454
|
+
<span class="method-click-advice">click to toggle source</span>
|
455
|
+
</div>
|
456
|
+
|
457
|
+
|
458
|
+
<div class="method-description">
|
511
459
|
|
512
|
-
<
|
513
|
-
<span class="method-name">start_hash_to_datetime</span><span
|
514
|
-
class="method-args">(start_hash)</span>
|
515
|
-
<span class="method-click-advice">click to toggle source</span>
|
516
|
-
</div>
|
460
|
+
<p>Takes the start hash and turns in into a DateTime object.</p>
|
517
461
|
|
518
462
|
|
519
|
-
|
520
|
-
|
521
|
-
<
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
<div class="method-source-code" id="start_hash_to_datetime-source">
|
526
|
-
<pre>
|
527
|
-
<span class="ruby-comment"># File lib/songkickr/event.rb, line 58</span>
|
463
|
+
|
464
|
+
<div class="method-source-code" id="start_hash_to_datetime-source">
|
465
|
+
<pre><span class="ruby-comment"># File lib/songkickr/event.rb, line 58</span>
|
528
466
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">start_hash_to_datetime</span>(<span class="ruby-identifier">start_hash</span>)
|
529
467
|
<span class="ruby-identifier">datetime</span> = <span class="ruby-constant">DateTime</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-node">"#{start_hash["date"]} #{start_hash["time"]}"</span>)
|
530
468
|
<span class="ruby-keyword">end</span></pre>
|
531
|
-
|
532
|
-
|
533
|
-
</div>
|
534
|
-
|
469
|
+
</div><!-- start_hash_to_datetime-source -->
|
535
470
|
|
471
|
+
</div>
|
536
472
|
|
537
|
-
|
538
|
-
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
</div><!-- start_hash_to_datetime-method -->
|
539
477
|
|
540
|
-
|
541
|
-
</div><!-- protected-instance-method-details -->
|
542
478
|
|
543
|
-
</
|
479
|
+
</section><!-- protected-instance-method-details -->
|
544
480
|
|
481
|
+
</section><!-- 5Buntitled-5D -->
|
545
482
|
|
546
|
-
|
483
|
+
</div><!-- documentation -->
|
547
484
|
|
548
|
-
<div id="validator-badges">
|
549
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
550
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
551
|
-
Rdoc Generator</a> 2</small>.</p>
|
552
|
-
</div>
|
553
485
|
|
554
|
-
|
555
|
-
</
|
486
|
+
<footer id="validator-badges">
|
487
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
488
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
489
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
490
|
+
</footer>
|
556
491
|
|