Class: Rdio::AlbumData
Direct Known Subclasses
Instance Attribute Summary collapse
-
#artist ⇒ Object
the name of the artist that released the album.
-
#artist_key ⇒ Object
the key of the artist that released the album.
-
#artist_url ⇒ Object
the URL of the artist that released the album on the Rdio site.
-
#base_icon ⇒ Object
the URL to the cover art for the album.
-
#can_sample ⇒ Object
the album can be previewed.
-
#can_stream ⇒ Object
the album can be streamed.
-
#can_tether ⇒ Object
the album can be sync to mobile devices.
-
#display_date ⇒ Object
the release date of the album, human readable.
-
#duration ⇒ Object
the duration of the album in seconds.
-
#embed_url ⇒ Object
the URL of a SWF to embed the album.
-
#icon ⇒ Object
the URL to the cover art for the album.
-
#is_clean ⇒ Object
is the album clean?.
-
#is_explicit ⇒ Object
is the album explicit?.
-
#length ⇒ Object
number of tracks on the album.
-
#name ⇒ Object
the name of the album.
-
#price ⇒ Object
the price of the album in US cents.
-
#release_date ⇒ Object
the release date of the album.
-
#release_date_iso ⇒ Object
the release date of the album in ISO format.
-
#short_url ⇒ Object
a short URL for the album.
-
#track_keys ⇒ Object
the keys of the tracks on the album.
-
#type ⇒ Object
the type of the object, always “a”.
-
#url ⇒ Object
the URL of the album on the Rdio site.
Attributes inherited from BaseObj
Attributes inherited from ApiObj
Instance Method Summary collapse
-
#initialize(api) ⇒ AlbumData
constructor
A new instance of AlbumData.
Methods inherited from BaseObj
Methods inherited from ApiObj
Constructor Details
#initialize(api) ⇒ AlbumData
Returns a new instance of AlbumData.
38 39 40 |
# File 'lib/rdio/datatypes.rb', line 38 def initialize(api) super api end |
Instance Attribute Details
#artist ⇒ Object
the name of the artist that released the album
58 59 60 |
# File 'lib/rdio/datatypes.rb', line 58 def artist @artist end |
#artist_key ⇒ Object
the key of the artist that released the album
73 74 75 |
# File 'lib/rdio/datatypes.rb', line 73 def artist_key @artist_key end |
#artist_url ⇒ Object
the URL of the artist that released the album on the Rdio site
61 62 63 |
# File 'lib/rdio/datatypes.rb', line 61 def artist_url @artist_url end |
#base_icon ⇒ Object
the URL to the cover art for the album
52 53 54 |
# File 'lib/rdio/datatypes.rb', line 52 def base_icon @base_icon end |
#can_sample ⇒ Object
the album can be previewed
85 86 87 |
# File 'lib/rdio/datatypes.rb', line 85 def can_sample @can_sample end |
#can_stream ⇒ Object
the album can be streamed
82 83 84 |
# File 'lib/rdio/datatypes.rb', line 82 def can_stream @can_stream end |
#can_tether ⇒ Object
the album can be sync to mobile devices
88 89 90 |
# File 'lib/rdio/datatypes.rb', line 88 def can_tether @can_tether end |
#display_date ⇒ Object
the release date of the album, human readable
97 98 99 |
# File 'lib/rdio/datatypes.rb', line 97 def display_date @display_date end |
#duration ⇒ Object
the duration of the album in seconds
103 104 105 |
# File 'lib/rdio/datatypes.rb', line 103 def duration @duration end |
#embed_url ⇒ Object
the URL of a SWF to embed the album
94 95 96 |
# File 'lib/rdio/datatypes.rb', line 94 def @embed_url end |
#icon ⇒ Object
the URL to the cover art for the album
49 50 51 |
# File 'lib/rdio/datatypes.rb', line 49 def icon @icon end |
#is_clean ⇒ Object
is the album clean?
67 68 69 |
# File 'lib/rdio/datatypes.rb', line 67 def is_clean @is_clean end |
#is_explicit ⇒ Object
is the album explicit?
64 65 66 |
# File 'lib/rdio/datatypes.rb', line 64 def is_explicit @is_explicit end |
#length ⇒ Object
number of tracks on the album
70 71 72 |
# File 'lib/rdio/datatypes.rb', line 70 def length @length end |
#name ⇒ Object
the name of the album
43 44 45 |
# File 'lib/rdio/datatypes.rb', line 43 def name @name end |
#price ⇒ Object
the price of the album in US cents
79 80 81 |
# File 'lib/rdio/datatypes.rb', line 79 def price @price end |
#release_date ⇒ Object
the release date of the album
100 101 102 |
# File 'lib/rdio/datatypes.rb', line 100 def release_date @release_date end |
#release_date_iso ⇒ Object
the release date of the album in ISO format
106 107 108 |
# File 'lib/rdio/datatypes.rb', line 106 def release_date_iso @release_date_iso end |
#short_url ⇒ Object
a short URL for the album
91 92 93 |
# File 'lib/rdio/datatypes.rb', line 91 def short_url @short_url end |
#track_keys ⇒ Object
the keys of the tracks on the album
76 77 78 |
# File 'lib/rdio/datatypes.rb', line 76 def track_keys @track_keys end |
#type ⇒ Object
the type of the object, always “a”
46 47 48 |
# File 'lib/rdio/datatypes.rb', line 46 def type @type end |
#url ⇒ Object
the URL of the album on the Rdio site
55 56 57 |
# File 'lib/rdio/datatypes.rb', line 55 def url @url end |