Class: Rdio::ArtistData

Inherits:
BaseObj show all
Defined in:
lib/rdio/datatypes.rb

Direct Known Subclasses

Artist

Instance Attribute Summary collapse

Attributes inherited from BaseObj

#key

Attributes inherited from ApiObj

#api

Instance Method Summary collapse

Methods inherited from BaseObj

#eql?, #to_k

Methods inherited from ApiObj

#fill

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_countObject

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_iconObject

an image for the artist, partial URL



24
25
26
# File 'lib/rdio/datatypes.rb', line 24

def base_icon
  @base_icon
end

#has_radioObject

is an Rdio Station available for the artist?



27
28
29
# File 'lib/rdio/datatypes.rb', line 27

def has_radio
  @has_radio
end

#iconObject

an image for the artist



21
22
23
# File 'lib/rdio/datatypes.rb', line 21

def icon
  @icon
end

#lengthObject

the number of tracks that the artist has on Rdio



18
19
20
# File 'lib/rdio/datatypes.rb', line 18

def length
  @length
end

#nameObject

the name of the artist



9
10
11
# File 'lib/rdio/datatypes.rb', line 9

def name
  @name
end

#short_urlObject

a short URL for the artist page



30
31
32
# File 'lib/rdio/datatypes.rb', line 30

def short_url
  @short_url
end

#typeObject

the object type, always “r”



12
13
14
# File 'lib/rdio/datatypes.rb', line 12

def type
  @type
end

#urlObject

the URL of the artist on the Rdio web site



15
16
17
# File 'lib/rdio/datatypes.rb', line 15

def url
  @url
end