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,265 +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::Venue - 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/venue.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::Venue</h1>
138
-
139
- <div id="description" class="description">
140
-
141
- </div><!-- description -->
142
-
143
-
144
-
145
-
146
- <section id="5Buntitled-5D" class="documentation-section">
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
- <!-- Attributes -->
155
- <section id="attribute-method-details" class="method-section section">
156
- <h3 class="section-header">Attributes</h3>
157
-
158
-
159
- <div id="attribute-i-display_name" class="method-detail">
160
- <div class="method-heading attribute-method-heading">
161
- <span class="method-name">display_name</span><span
162
- class="attribute-access-type">[RW]</span>
163
- </div>
164
-
165
- <div class="method-description">
166
-
167
-
168
-
169
- </div>
170
- </div>
171
-
172
- <div id="attribute-i-id" class="method-detail">
173
- <div class="method-heading attribute-method-heading">
174
- <span class="method-name">id</span><span
175
- class="attribute-access-type">[RW]</span>
176
- </div>
177
-
178
- <div class="method-description">
179
-
180
-
181
-
182
- </div>
183
- </div>
184
-
185
- <div id="attribute-i-lat" class="method-detail">
186
- <div class="method-heading attribute-method-heading">
187
- <span class="method-name">lat</span><span
188
- class="attribute-access-type">[RW]</span>
189
- </div>
190
-
191
- <div class="method-description">
192
-
193
-
194
-
195
- </div>
196
- </div>
197
-
198
- <div id="attribute-i-lng" class="method-detail">
199
- <div class="method-heading attribute-method-heading">
200
- <span class="method-name">lng</span><span
201
- class="attribute-access-type">[RW]</span>
202
- </div>
203
-
204
- <div class="method-description">
205
-
206
-
207
-
208
- </div>
209
- </div>
210
-
211
- </section><!-- attribute-method-details -->
212
-
213
-
214
- <!-- Methods -->
215
-
216
- <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
217
- <h3 class="section-header">Public Class Methods</h3>
218
-
219
-
220
- <div id="method-c-new" class="method-detail ">
221
-
222
- <div class="method-heading">
223
- <span class="method-name">new</span><span
224
- class="method-args">(venue_hash)</span>
225
- <span class="method-click-advice">click to toggle source</span>
226
- </div>
227
-
228
-
229
- <div class="method-description">
230
-
231
-
232
-
233
-
234
-
235
- <div class="method-source-code" id="new-source">
236
- <pre><span class="ruby-comment"># File lib/songkickr/venue.rb, line 5</span>
237
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">venue_hash</span>)
238
- <span class="ruby-ivar">@display_name</span> = <span class="ruby-identifier">venue_hash</span>[<span class="ruby-string">&quot;displayName&quot;</span>]
239
- <span class="ruby-ivar">@id</span> = <span class="ruby-identifier">venue_hash</span>[<span class="ruby-string">&quot;id&quot;</span>]
240
- <span class="ruby-ivar">@lat</span> = <span class="ruby-identifier">venue_hash</span>[<span class="ruby-string">&quot;lat&quot;</span>]
241
- <span class="ruby-ivar">@lng</span> = <span class="ruby-identifier">venue_hash</span>[<span class="ruby-string">&quot;lng&quot;</span>]
242
- <span class="ruby-keyword">end</span></pre>
243
- </div><!-- new-source -->
244
-
245
- </div>
246
-
247
-
248
-
249
-
250
- </div><!-- new-method -->
251
-
252
-
253
- </section><!-- public-class-method-details -->
254
-
255
- </section><!-- 5Buntitled-5D -->
256
-
257
- </div><!-- documentation -->
258
-
259
-
260
- <footer id="validator-badges">
261
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
262
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
263
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
264
- </footer>
265
-
data/doc/Songkickr.html DELETED
@@ -1,261 +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>module Songkickr - 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="module">
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/artist.rb
51
- <li>lib/songkickr/artist_result.rb
52
- <li>lib/songkickr/concert_setlist_result.rb
53
- <li>lib/songkickr/event.rb
54
- <li>lib/songkickr/event_result.rb
55
- <li>lib/songkickr/location.rb
56
- <li>lib/songkickr/location_result.rb
57
- <li>lib/songkickr/performance.rb
58
- <li>lib/songkickr/remote.rb
59
- <li>lib/songkickr/setlist.rb
60
- <li>lib/songkickr/setlist_item.rb
61
- <li>lib/songkickr/venue.rb
62
- <li>lib/songkickr.rb
63
- </ul>
64
- </nav>
65
-
66
-
67
- </div>
68
-
69
- <div id="class-metadata">
70
-
71
-
72
-
73
- <!-- Method Quickref -->
74
- <nav id="method-list-section" class="section">
75
- <h3 class="section-header">Methods</h3>
76
-
77
- <ul class="link-list">
78
-
79
- <li><a href="#method-c-api_key">::api_key</a>
80
-
81
- <li><a href="#method-c-api_key-3D">::api_key=</a>
82
-
83
- </ul>
84
- </nav>
85
-
86
- </div>
87
-
88
- <div id="project-metadata">
89
- <nav id="fileindex-section" class="section project-section">
90
- <h3 class="section-header">Pages</h3>
91
-
92
- <ul>
93
-
94
- <li class="file"><a href="./LICENSE.html">LICENSE</a>
95
-
96
- <li class="file"><a href="./README_rdoc.html">README</a>
97
-
98
- </ul>
99
- </nav>
100
-
101
- <nav id="classindex-section" class="section project-section">
102
- <h3 class="section-header">Class and Module Index</h3>
103
-
104
- <ul class="link-list">
105
-
106
- <li><a href="./Songkickr.html">Songkickr</a>
107
-
108
- <li><a href="./Songkickr/Artist.html">Songkickr::Artist</a>
109
-
110
- <li><a href="./Songkickr/ArtistResult.html">Songkickr::ArtistResult</a>
111
-
112
- <li><a href="./Songkickr/ConcertSetlistResult.html">Songkickr::ConcertSetlistResult</a>
113
-
114
- <li><a href="./Songkickr/Event.html">Songkickr::Event</a>
115
-
116
- <li><a href="./Songkickr/EventResult.html">Songkickr::EventResult</a>
117
-
118
- <li><a href="./Songkickr/Location.html">Songkickr::Location</a>
119
-
120
- <li><a href="./Songkickr/LocationResult.html">Songkickr::LocationResult</a>
121
-
122
- <li><a href="./Songkickr/Performance.html">Songkickr::Performance</a>
123
-
124
- <li><a href="./Songkickr/Remote.html">Songkickr::Remote</a>
125
-
126
- <li><a href="./Songkickr/Setlist.html">Songkickr::Setlist</a>
127
-
128
- <li><a href="./Songkickr/SetlistItem.html">Songkickr::SetlistItem</a>
129
-
130
- <li><a href="./Songkickr/Venue.html">Songkickr::Venue</a>
131
-
132
- <li><a href="./APIError.html">APIError</a>
133
-
134
- <li><a href="./APIKeyNotSet.html">APIKeyNotSet</a>
135
-
136
- <li><a href="./ResourceNotFound.html">ResourceNotFound</a>
137
-
138
- </ul>
139
- </nav>
140
-
141
- </div>
142
- </nav>
143
-
144
- <div id="documentation">
145
- <h1 class="module">module Songkickr</h1>
146
-
147
- <div id="description" class="description">
148
-
149
- </div><!-- description -->
150
-
151
-
152
-
153
-
154
- <section id="5Buntitled-5D" class="documentation-section">
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
- <!-- Methods -->
164
-
165
- <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
166
- <h3 class="section-header">Public Class Methods</h3>
167
-
168
-
169
- <div id="method-c-api_key" class="method-detail ">
170
-
171
- <div class="method-heading">
172
- <span class="method-name">api_key</span><span
173
- class="method-args">()</span>
174
- <span class="method-click-advice">click to toggle source</span>
175
- </div>
176
-
177
-
178
- <div class="method-description">
179
-
180
- <p>Returns the Songkick API key In order to use the Songkick API, you must
181
- have a Songkick API (their rule, not mine). Get an API key for your app
182
- from <a href="http://developer.songkick.com/">developer.songkick.com/</a></p>
183
-
184
- <h4 id="method-c-api_key-label-Example">Example</h4>
185
-
186
- <pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">'songkickr'</span>
187
- <span class="ruby-identifier">remote</span> = <span class="ruby-constant">Songkickr</span><span class="ruby-operator">::</span><span class="ruby-constant">Remote</span>.<span class="ruby-identifier">new</span> <span class="ruby-constant">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</span>
188
- <span class="ruby-identifier">remote</span>.<span class="ruby-identifier">api_key</span>
189
- <span class="ruby-constant">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</span>
190
- </pre>
191
-
192
-
193
-
194
- <div class="method-source-code" id="api_key-source">
195
- <pre><span class="ruby-comment"># File lib/songkickr.rb, line 57</span>
196
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">api_key</span>
197
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">APIKeyNotSet</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@api_key</span>.<span class="ruby-identifier">nil?</span>
198
-
199
- <span class="ruby-ivar">@api_key</span>
200
- <span class="ruby-keyword">end</span></pre>
201
- </div><!-- api_key-source -->
202
-
203
- </div>
204
-
205
-
206
-
207
-
208
- </div><!-- api_key-method -->
209
-
210
-
211
- <div id="method-c-api_key-3D" class="method-detail ">
212
-
213
- <div class="method-heading">
214
- <span class="method-name">api_key=</span><span
215
- class="method-args">(api_key)</span>
216
- <span class="method-click-advice">click to toggle source</span>
217
- </div>
218
-
219
-
220
- <div class="method-description">
221
-
222
- <p>Set the API key. In the event you need to set the API key after
223
- initializing the the remote.</p>
224
-
225
- <h3 id="method-c-api_key-3D-label-Parameters">Parameters</h3>
226
- <ul><li>
227
- <p><code>api_key</code> - A developer key from Songkick. Get an API key for
228
- your app from <a
229
- href="http://developer.songkick.com/">developer.songkick.com/</a></p>
230
- </li></ul>
231
-
232
-
233
-
234
- <div class="method-source-code" id="api_key-3D-source">
235
- <pre><span class="ruby-comment"># File lib/songkickr.rb, line 67</span>
236
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">api_key=</span>(<span class="ruby-identifier">api_key</span>)
237
- <span class="ruby-ivar">@api_key</span> = <span class="ruby-identifier">api_key</span>
238
- <span class="ruby-keyword">end</span></pre>
239
- </div><!-- api_key-3D-source -->
240
-
241
- </div>
242
-
243
-
244
-
245
-
246
- </div><!-- api_key-3D-method -->
247
-
248
-
249
- </section><!-- public-class-method-details -->
250
-
251
- </section><!-- 5Buntitled-5D -->
252
-
253
- </div><!-- documentation -->
254
-
255
-
256
- <footer id="validator-badges">
257
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
258
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
259
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
260
- </footer>
261
-
data/doc/created.rid DELETED
@@ -1,16 +0,0 @@
1
- Fri, 14 Sep 2012 12:08:49 +0100
2
- ./README.rdoc Mon, 20 Aug 2012 19:04:26 +0100
3
- ./lib/songkickr/artist.rb Mon, 20 Aug 2012 17:43:50 +0100
4
- ./lib/songkickr/artist_result.rb Tue, 21 Aug 2012 15:11:03 +0100
5
- ./lib/songkickr/concert_setlist_result.rb Mon, 20 Aug 2012 16:13:35 +0100
6
- ./lib/songkickr/event.rb Mon, 20 Aug 2012 16:11:31 +0100
7
- ./lib/songkickr/event_result.rb Mon, 20 Aug 2012 16:11:31 +0100
8
- ./lib/songkickr/location.rb Mon, 20 Aug 2012 16:11:31 +0100
9
- ./lib/songkickr/location_result.rb Mon, 20 Aug 2012 16:19:35 +0100
10
- ./lib/songkickr/performance.rb Mon, 20 Aug 2012 16:11:31 +0100
11
- ./lib/songkickr/remote.rb Fri, 14 Sep 2012 12:05:11 +0100
12
- ./lib/songkickr/setlist.rb Mon, 20 Aug 2012 16:11:31 +0100
13
- ./lib/songkickr/setlist_item.rb Mon, 20 Aug 2012 16:11:31 +0100
14
- ./lib/songkickr/venue.rb Mon, 20 Aug 2012 16:14:02 +0100
15
- ./lib/songkickr.rb Mon, 20 Aug 2012 17:06:43 +0100
16
- ./LICENSE Mon, 20 Aug 2012 16:11:31 +0100
data/doc/images/add.png DELETED
Binary file
data/doc/images/brick.png DELETED
Binary file
Binary file
data/doc/images/bug.png DELETED
Binary file
Binary file
Binary file
Binary file
data/doc/images/date.png DELETED
Binary file
Binary file
data/doc/images/find.png DELETED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/doc/images/ruby.png DELETED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/doc/images/zoom.png DELETED
Binary file