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
@@ -1,225 +1,213 @@
|
|
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::ConcertSetlistResult - 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/concert_setlist_result.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_results">#parse_results</a>
|
76
|
+
|
77
|
+
</ul>
|
78
|
+
</nav>
|
61
79
|
|
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
|
-
|
80
|
+
</div>
|
75
81
|
|
76
|
-
|
77
|
-
|
82
|
+
<div id="project-metadata">
|
83
|
+
<nav id="fileindex-section" class="section project-section">
|
84
|
+
<h3 class="section-header">Pages</h3>
|
78
85
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
|
89
|
-
|
90
|
-
</ul>
|
91
|
-
</div>
|
92
|
-
|
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>
|
93
94
|
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
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
|
-
<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>
|
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>
|
140
134
|
|
141
|
-
|
142
|
-
</div>
|
143
135
|
</div>
|
136
|
+
</nav>
|
144
137
|
|
145
|
-
|
146
|
-
|
138
|
+
<div id="documentation">
|
139
|
+
<h1 class="class">class Songkickr::ConcertSetlistResult</h1>
|
147
140
|
|
148
|
-
|
149
|
-
|
141
|
+
<div id="description" class="description">
|
142
|
+
|
150
143
|
<p>A class to represent the result hash of an <a
|
151
144
|
href="Setlist.html">Setlist</a> search.</p>
|
152
145
|
|
153
146
|
<p><a
|
154
147
|
href="http://www.songkick.com/developer/setlists">www.songkick.com/developer/setlists</a></p>
|
155
148
|
|
156
|
-
|
149
|
+
</div><!-- description -->
|
157
150
|
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
158
155
|
|
159
|
-
<div id="5Buntitled-5D" class="documentation-section">
|
160
|
-
|
161
156
|
|
162
|
-
|
157
|
+
|
163
158
|
|
164
|
-
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
<!-- Attributes -->
|
163
|
+
<section id="attribute-method-details" class="method-section section">
|
164
|
+
<h3 class="section-header">Attributes</h3>
|
165
165
|
|
166
166
|
|
167
|
-
|
168
|
-
|
169
|
-
|
167
|
+
<div id="attribute-i-results" class="method-detail">
|
168
|
+
<div class="method-heading attribute-method-heading">
|
169
|
+
<span class="method-name">results</span><span
|
170
|
+
class="attribute-access-type">[RW]</span>
|
171
|
+
</div>
|
170
172
|
|
173
|
+
<div class="method-description">
|
171
174
|
|
172
|
-
<div id="results-attribute-method" class="method-detail">
|
173
|
-
<a name="results"></a>
|
174
|
-
|
175
|
-
<a name="results="></a>
|
176
|
-
|
177
|
-
<div class="method-heading attribute-method-heading">
|
178
|
-
<span class="method-name">results</span><span
|
179
|
-
class="attribute-access-type">[RW]</span>
|
180
|
-
</div>
|
181
|
-
|
182
|
-
<div class="method-description">
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
</div>
|
187
|
-
</div>
|
188
175
|
|
189
|
-
|
176
|
+
|
177
|
+
</div>
|
178
|
+
</div>
|
190
179
|
|
180
|
+
</section><!-- attribute-method-details -->
|
181
|
+
|
191
182
|
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
183
|
+
<!-- Methods -->
|
184
|
+
|
185
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
186
|
+
<h3 class="section-header">Public Class Methods</h3>
|
196
187
|
|
197
|
-
|
198
|
-
|
199
|
-
|
188
|
+
|
189
|
+
<div id="method-c-new" class="method-detail ">
|
190
|
+
|
191
|
+
<div class="method-heading">
|
192
|
+
<span class="method-name">new</span><span
|
193
|
+
class="method-args">(result_hash = {})</span>
|
194
|
+
<span class="method-click-advice">click to toggle source</span>
|
195
|
+
</div>
|
196
|
+
|
200
197
|
|
198
|
+
<div class="method-description">
|
201
199
|
|
202
|
-
<
|
203
|
-
|
204
|
-
class="method-args">(result_hash = {})</span>
|
205
|
-
<span class="method-click-advice">click to toggle source</span>
|
206
|
-
</div>
|
200
|
+
<p>Takes the result ash and passes it to <a
|
201
|
+
href="ConcertSetlistResult.html#method-i-parse_results">#parse_results</a></p>
|
207
202
|
|
208
203
|
|
209
|
-
|
210
|
-
|
211
|
-
<
|
212
|
-
href="ConcertSetlistResult.html#method-i-parse_results">parse_results</a></p>
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
<div class="method-source-code" id="new-source">
|
217
|
-
<pre>
|
218
|
-
<span class="ruby-comment"># File lib/songkickr/concert_setlist_result.rb, line 9</span>
|
204
|
+
|
205
|
+
<div class="method-source-code" id="new-source">
|
206
|
+
<pre><span class="ruby-comment"># File lib/songkickr/concert_setlist_result.rb, line 9</span>
|
219
207
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">result_hash</span> = {})
|
220
208
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">result_hash</span>[<span class="ruby-string">"resultsPage"</span>]
|
221
209
|
<span class="ruby-identifier">results_page</span> = <span class="ruby-identifier">result_hash</span>[<span class="ruby-string">"resultsPage"</span>]
|
222
|
-
|
210
|
+
|
223
211
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">results_page</span>
|
224
212
|
<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>]
|
225
213
|
<span class="ruby-keyword">end</span>
|
@@ -227,42 +215,39 @@ href="ConcertSetlistResult.html#method-i-parse_results">parse_results</a></p>
|
|
227
215
|
<span class="ruby-identifier">result_hash</span>
|
228
216
|
<span class="ruby-keyword">end</span>
|
229
217
|
<span class="ruby-keyword">end</span></pre>
|
230
|
-
|
231
|
-
|
232
|
-
</div>
|
233
|
-
|
218
|
+
</div><!-- new-source -->
|
234
219
|
|
220
|
+
</div>
|
235
221
|
|
236
|
-
|
237
|
-
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
</div><!-- new-method -->
|
238
226
|
|
239
|
-
|
240
|
-
</div><!-- public-class-method-details -->
|
241
227
|
|
242
|
-
|
243
|
-
|
228
|
+
</section><!-- public-class-method-details -->
|
229
|
+
|
230
|
+
<section id="protected-instance-5Buntitled-5D-method-details" class="method-section section">
|
231
|
+
<h3 class="section-header">Protected Instance Methods</h3>
|
244
232
|
|
245
|
-
|
246
|
-
|
247
|
-
|
233
|
+
|
234
|
+
<div id="method-i-parse_results" class="method-detail ">
|
235
|
+
|
236
|
+
<div class="method-heading">
|
237
|
+
<span class="method-name">parse_results</span><span
|
238
|
+
class="method-args">(results = {})</span>
|
239
|
+
<span class="method-click-advice">click to toggle source</span>
|
240
|
+
</div>
|
241
|
+
|
248
242
|
|
243
|
+
<div class="method-description">
|
249
244
|
|
250
|
-
<
|
251
|
-
<span class="method-name">parse_results</span><span
|
252
|
-
class="method-args">(results = {})</span>
|
253
|
-
<span class="method-click-advice">click to toggle source</span>
|
254
|
-
</div>
|
245
|
+
<p>Parses the setlist items into an array of SetlistItems</p>
|
255
246
|
|
256
247
|
|
257
|
-
|
258
|
-
|
259
|
-
<
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
<div class="method-source-code" id="parse_results-source">
|
264
|
-
<pre>
|
265
|
-
<span class="ruby-comment"># File lib/songkickr/concert_setlist_result.rb, line 25</span>
|
248
|
+
|
249
|
+
<div class="method-source-code" id="parse_results-source">
|
250
|
+
<pre><span class="ruby-comment"># File lib/songkickr/concert_setlist_result.rb, line 25</span>
|
266
251
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">parse_results</span>(<span class="ruby-identifier">results</span> = {})
|
267
252
|
<span class="ruby-identifier">setlists</span> = []
|
268
253
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">results</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-string">"setlist"</span>)
|
@@ -270,32 +255,29 @@ href="ConcertSetlistResult.html#method-i-parse_results">parse_results</a></p>
|
|
270
255
|
<span class="ruby-identifier">setlists</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">Songkickr</span><span class="ruby-operator">::</span><span class="ruby-constant">Setlist</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">setlist</span>)
|
271
256
|
<span class="ruby-keyword">end</span>
|
272
257
|
<span class="ruby-keyword">end</span>
|
273
|
-
|
258
|
+
|
274
259
|
<span class="ruby-identifier">setlists</span>
|
275
260
|
<span class="ruby-keyword">end</span></pre>
|
276
|
-
|
277
|
-
|
278
|
-
</div>
|
279
|
-
|
261
|
+
</div><!-- parse_results-source -->
|
280
262
|
|
263
|
+
</div>
|
281
264
|
|
282
|
-
|
283
|
-
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
</div><!-- parse_results-method -->
|
284
269
|
|
285
|
-
|
286
|
-
</div><!-- protected-instance-method-details -->
|
287
270
|
|
288
|
-
</
|
271
|
+
</section><!-- protected-instance-method-details -->
|
289
272
|
|
273
|
+
</section><!-- 5Buntitled-5D -->
|
290
274
|
|
291
|
-
|
275
|
+
</div><!-- documentation -->
|
292
276
|
|
293
|
-
<div id="validator-badges">
|
294
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
295
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
296
|
-
Rdoc Generator</a> 2</small>.</p>
|
297
|
-
</div>
|
298
277
|
|
299
|
-
|
300
|
-
</
|
278
|
+
<footer id="validator-badges">
|
279
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
280
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
281
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
282
|
+
</footer>
|
301
283
|
|