rdio 0.0.9 → 0.0.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/rdio/types.rb +52 -0
- metadata +4 -4
data/lib/rdio/types.rb
CHANGED
@@ -99,6 +99,9 @@ module Rdio
|
|
99
99
|
super api
|
100
100
|
end
|
101
101
|
|
102
|
+
# big icon
|
103
|
+
attr_accessor :big_icon
|
104
|
+
|
102
105
|
# the track ids
|
103
106
|
attr_accessor :track_ids
|
104
107
|
|
@@ -108,6 +111,14 @@ module Rdio
|
|
108
111
|
# the tracks
|
109
112
|
attr_accessor :tracks
|
110
113
|
|
114
|
+
# indicates if the album is a compilation
|
115
|
+
attr_accessor :is_compilation
|
116
|
+
|
117
|
+
# indicates if the album is a compilation
|
118
|
+
def compilation?
|
119
|
+
is_compilation
|
120
|
+
end
|
121
|
+
|
111
122
|
# is the album explicit?
|
112
123
|
def explicit?
|
113
124
|
is_explicit
|
@@ -210,6 +221,17 @@ module Rdio
|
|
210
221
|
# the secondary id
|
211
222
|
attr_accessor :secondary_id
|
212
223
|
|
224
|
+
# indicates if the track is on a compilation
|
225
|
+
attr_accessor :is_on_compilation
|
226
|
+
|
227
|
+
# big icon
|
228
|
+
attr_accessor :big_icon
|
229
|
+
|
230
|
+
# indicates if the track is on a compilation
|
231
|
+
def on_compilation?
|
232
|
+
is_on_compilation
|
233
|
+
end
|
234
|
+
|
213
235
|
# Returns the Album
|
214
236
|
def album(extras=nil)
|
215
237
|
Album.get @album_key,extras
|
@@ -306,6 +328,12 @@ module Rdio
|
|
306
328
|
super api
|
307
329
|
end
|
308
330
|
|
331
|
+
# big icon
|
332
|
+
attr_accessor :big_icon
|
333
|
+
|
334
|
+
# track keys
|
335
|
+
attr_accessor :track_keys
|
336
|
+
|
309
337
|
# Remove an item from a playlist by its position in the playlist.
|
310
338
|
def remove(index,count,tracks)
|
311
339
|
api.removeFromPlaylist self,index,count,tracks
|
@@ -373,6 +401,30 @@ module Rdio
|
|
373
401
|
super api
|
374
402
|
end
|
375
403
|
|
404
|
+
# isTrial
|
405
|
+
attr_accessor :is_trial
|
406
|
+
|
407
|
+
# isSubscriber
|
408
|
+
attr_accessor :is_subscriber
|
409
|
+
|
410
|
+
# isUnlimited
|
411
|
+
attr_accessor :is_unlimited
|
412
|
+
|
413
|
+
# isTrial
|
414
|
+
def trial?
|
415
|
+
is_trial
|
416
|
+
end
|
417
|
+
|
418
|
+
# isSubscriber
|
419
|
+
def subscriber?
|
420
|
+
is_subscriber
|
421
|
+
end
|
422
|
+
|
423
|
+
# isUnlimited
|
424
|
+
def unlimited?
|
425
|
+
is_unlimited
|
426
|
+
end
|
427
|
+
|
376
428
|
# Get the activity events for a user, a user's friends, or
|
377
429
|
# everyone on Rdio.
|
378
430
|
def activity_stream(scope='user',last_id=nil)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 169
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 91
|
10
|
+
version: 0.0.91
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeffrey Palm
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-05-07 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|