Class: Rdio::AlbumData

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

Direct Known Subclasses

Album

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) ⇒ 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

#artistObject

the name of the artist that released the album



58
59
60
# File 'lib/rdio/datatypes.rb', line 58

def artist
  @artist
end

#artist_keyObject

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_urlObject

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_iconObject

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_sampleObject

the album can be previewed



85
86
87
# File 'lib/rdio/datatypes.rb', line 85

def can_sample
  @can_sample
end

#can_streamObject

the album can be streamed



82
83
84
# File 'lib/rdio/datatypes.rb', line 82

def can_stream
  @can_stream
end

#can_tetherObject

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_dateObject

the release date of the album, human readable



97
98
99
# File 'lib/rdio/datatypes.rb', line 97

def display_date
  @display_date
end

#durationObject

the duration of the album in seconds



103
104
105
# File 'lib/rdio/datatypes.rb', line 103

def duration
  @duration
end

#embed_urlObject

the URL of a SWF to embed the album



94
95
96
# File 'lib/rdio/datatypes.rb', line 94

def embed_url
  @embed_url
end

#iconObject

the URL to the cover art for the album



49
50
51
# File 'lib/rdio/datatypes.rb', line 49

def icon
  @icon
end

#is_cleanObject

is the album clean?



67
68
69
# File 'lib/rdio/datatypes.rb', line 67

def is_clean
  @is_clean
end

#is_explicitObject

is the album explicit?



64
65
66
# File 'lib/rdio/datatypes.rb', line 64

def is_explicit
  @is_explicit
end

#lengthObject

number of tracks on the album



70
71
72
# File 'lib/rdio/datatypes.rb', line 70

def length
  @length
end

#nameObject

the name of the album



43
44
45
# File 'lib/rdio/datatypes.rb', line 43

def name
  @name
end

#priceObject

the price of the album in US cents



79
80
81
# File 'lib/rdio/datatypes.rb', line 79

def price
  @price
end

#release_dateObject

the release date of the album



100
101
102
# File 'lib/rdio/datatypes.rb', line 100

def release_date
  @release_date
end

#release_date_isoObject

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_urlObject

a short URL for the album



91
92
93
# File 'lib/rdio/datatypes.rb', line 91

def short_url
  @short_url
end

#track_keysObject

the keys of the tracks on the album



76
77
78
# File 'lib/rdio/datatypes.rb', line 76

def track_keys
  @track_keys
end

#typeObject

the type of the object, always “a”



46
47
48
# File 'lib/rdio/datatypes.rb', line 46

def type
  @type
end

#urlObject

the URL of the album on the Rdio site



55
56
57
# File 'lib/rdio/datatypes.rb', line 55

def url
  @url
end