Class: Rdio::TrackData

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

Direct Known Subclasses

Track

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

Returns a new instance of TrackData.



111
112
113
# File 'lib/rdio/datatypes.rb', line 111

def initialize(api)
  super api
end

Instance Attribute Details

#albumObject

the name of the album that the track appears on



122
123
124
# File 'lib/rdio/datatypes.rb', line 122

def album
  @album
end

#album_artistObject

the name of the artist whose album the track appears on



158
159
160
# File 'lib/rdio/datatypes.rb', line 158

def album_artist
  @album_artist
end

#album_artist_keyObject

the key of the artist whose album the track appears on



161
162
163
# File 'lib/rdio/datatypes.rb', line 161

def album_artist_key
  @album_artist_key
end

#album_keyObject

the key of the album that the track appears on



125
126
127
# File 'lib/rdio/datatypes.rb', line 125

def album_key
  @album_key
end

#album_urlObject

the URL of the album that the track appears on, on the Rdio web site



128
129
130
# File 'lib/rdio/datatypes.rb', line 128

def album_url
  @album_url
end

#artistObject

the name of the artist who performed the track



119
120
121
# File 'lib/rdio/datatypes.rb', line 119

def artist
  @artist
end

#artist_keyObject

the key of the track’s artist



131
132
133
# File 'lib/rdio/datatypes.rb', line 131

def artist_key
  @artist_key
end

#artist_urlObject

the URL of the track’s artist on the Rdio web site



134
135
136
# File 'lib/rdio/datatypes.rb', line 134

def artist_url
  @artist_url
end

#base_iconObject

the URL of the album-art for the track



155
156
157
# File 'lib/rdio/datatypes.rb', line 155

def base_icon
  @base_icon
end

#can_downloadObject

the track can be downloaded



164
165
166
# File 'lib/rdio/datatypes.rb', line 164

def can_download
  @can_download
end

#can_download_album_onlyObject

the track can only be downloaded as part of an album download



167
168
169
# File 'lib/rdio/datatypes.rb', line 167

def can_download_album_only
  @can_download_album_only
end

#can_sampleObject

the track can be previewed



176
177
178
# File 'lib/rdio/datatypes.rb', line 176

def can_sample
  @can_sample
end

#can_streamObject

the track can be streamed



170
171
172
# File 'lib/rdio/datatypes.rb', line 170

def can_stream
  @can_stream
end

#can_tetherObject

the track can be synced to mobile devices



173
174
175
# File 'lib/rdio/datatypes.rb', line 173

def can_tether
  @can_tether
end

#durationObject

the duration of the track in seconds



143
144
145
# File 'lib/rdio/datatypes.rb', line 143

def duration
  @duration
end

#embed_urlObject

the URL of a SWF to embed the track



185
186
187
# File 'lib/rdio/datatypes.rb', line 185

def embed_url
  @embed_url
end

#iconObject

the partial URL of the album-art for the track



188
189
190
# File 'lib/rdio/datatypes.rb', line 188

def icon
  @icon
end

#is_cleanObject

is the track clean?



149
150
151
# File 'lib/rdio/datatypes.rb', line 149

def is_clean
  @is_clean
end

#is_explicitObject

is the track explicit?



146
147
148
# File 'lib/rdio/datatypes.rb', line 146

def is_explicit
  @is_explicit
end

#lengthObject

the number of tracks in the track, ie: 1



140
141
142
# File 'lib/rdio/datatypes.rb', line 140

def length
  @length
end

#nameObject

the name of the track



116
117
118
# File 'lib/rdio/datatypes.rb', line 116

def name
  @name
end

#play_countObject

the number of times this track has been played



191
192
193
# File 'lib/rdio/datatypes.rb', line 191

def play_count
  @play_count
end

#priceObject

the price of the track in US cents



179
180
181
# File 'lib/rdio/datatypes.rb', line 179

def price
  @price
end

#short_urlObject

a short URL for the track



182
183
184
# File 'lib/rdio/datatypes.rb', line 182

def short_url
  @short_url
end

#typeObject

the object type, always “t”



137
138
139
# File 'lib/rdio/datatypes.rb', line 137

def type
  @type
end

#urlObject

the URL of the track on the Rdio web site



152
153
154
# File 'lib/rdio/datatypes.rb', line 152

def url
  @url
end