Class: Rdio::ArtistData
Direct Known Subclasses
Instance Attribute Summary collapse
-
#album_count ⇒ Object
the number of albums that the artist has on Rdio.
-
#base_icon ⇒ Object
an image for the artist, partial URL.
-
#has_radio ⇒ Object
is an Rdio Station available for the artist?.
-
#icon ⇒ Object
an image for the artist.
-
#length ⇒ Object
the number of tracks that the artist has on Rdio.
-
#name ⇒ Object
the name of the artist.
-
#short_url ⇒ Object
a short URL for the artist page.
-
#type ⇒ Object
the object type, always “r”.
-
#url ⇒ Object
the URL of the artist on the Rdio web site.
Attributes inherited from BaseObj
Attributes inherited from ApiObj
Instance Method Summary collapse
-
#initialize(api) ⇒ ArtistData
constructor
A new instance of ArtistData.
Methods inherited from BaseObj
Methods inherited from ApiObj
Constructor Details
#initialize(api) ⇒ ArtistData
Returns a new instance of ArtistData.
4 5 6 |
# File 'lib/rdio/datatypes.rb', line 4 def initialize(api) super api end |
Instance Attribute Details
#album_count ⇒ Object
the number of albums that the artist has on Rdio
33 34 35 |
# File 'lib/rdio/datatypes.rb', line 33 def album_count @album_count end |
#base_icon ⇒ Object
an image for the artist, partial URL
24 25 26 |
# File 'lib/rdio/datatypes.rb', line 24 def base_icon @base_icon end |
#has_radio ⇒ Object
is an Rdio Station available for the artist?
27 28 29 |
# File 'lib/rdio/datatypes.rb', line 27 def has_radio @has_radio end |
#icon ⇒ Object
an image for the artist
21 22 23 |
# File 'lib/rdio/datatypes.rb', line 21 def icon @icon end |
#length ⇒ Object
the number of tracks that the artist has on Rdio
18 19 20 |
# File 'lib/rdio/datatypes.rb', line 18 def length @length end |
#name ⇒ Object
the name of the artist
9 10 11 |
# File 'lib/rdio/datatypes.rb', line 9 def name @name end |
#short_url ⇒ Object
a short URL for the artist page
30 31 32 |
# File 'lib/rdio/datatypes.rb', line 30 def short_url @short_url end |
#type ⇒ Object
the object type, always “r”
12 13 14 |
# File 'lib/rdio/datatypes.rb', line 12 def type @type end |
#url ⇒ Object
the URL of the artist on the Rdio web site
15 16 17 |
# File 'lib/rdio/datatypes.rb', line 15 def url @url end |