Class: Rdio::TrackData
Direct Known Subclasses
Instance Attribute Summary collapse
-
#album ⇒ Object
the name of the album that the track appears on.
-
#album_artist ⇒ Object
the name of the artist whose album the track appears on.
-
#album_artist_key ⇒ Object
the key of the artist whose album the track appears on.
-
#album_key ⇒ Object
the key of the album that the track appears on.
-
#album_url ⇒ Object
the URL of the album that the track appears on, on the Rdio web site.
-
#artist ⇒ Object
the name of the artist who performed the track.
-
#artist_key ⇒ Object
the key of the track’s artist.
-
#artist_url ⇒ Object
the URL of the track’s artist on the Rdio web site.
-
#base_icon ⇒ Object
the URL of the album-art for the track.
-
#can_download ⇒ Object
the track can be downloaded.
-
#can_download_album_only ⇒ Object
the track can only be downloaded as part of an album download.
-
#can_sample ⇒ Object
the track can be previewed.
-
#can_stream ⇒ Object
the track can be streamed.
-
#can_tether ⇒ Object
the track can be synced to mobile devices.
-
#duration ⇒ Object
the duration of the track in seconds.
-
#embed_url ⇒ Object
the URL of a SWF to embed the track.
-
#icon ⇒ Object
the partial URL of the album-art for the track.
-
#is_clean ⇒ Object
is the track clean?.
-
#is_explicit ⇒ Object
is the track explicit?.
-
#length ⇒ Object
the number of tracks in the track, ie: 1.
-
#name ⇒ Object
the name of the track.
-
#play_count ⇒ Object
the number of times this track has been played.
-
#price ⇒ Object
the price of the track in US cents.
-
#short_url ⇒ Object
a short URL for the track.
-
#type ⇒ Object
the object type, always “t”.
-
#url ⇒ Object
the URL of the track on the Rdio web site.
Attributes inherited from BaseObj
Attributes inherited from ApiObj
Instance Method Summary collapse
-
#initialize(api) ⇒ TrackData
constructor
A new instance of TrackData.
Methods inherited from BaseObj
Methods inherited from ApiObj
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
#album ⇒ Object
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_artist ⇒ Object
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_key ⇒ Object
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_key ⇒ Object
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_url ⇒ Object
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 |
#artist ⇒ Object
the name of the artist who performed the track
119 120 121 |
# File 'lib/rdio/datatypes.rb', line 119 def artist @artist end |
#artist_key ⇒ Object
the key of the track’s artist
131 132 133 |
# File 'lib/rdio/datatypes.rb', line 131 def artist_key @artist_key end |
#artist_url ⇒ Object
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_icon ⇒ Object
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_download ⇒ Object
the track can be downloaded
164 165 166 |
# File 'lib/rdio/datatypes.rb', line 164 def can_download @can_download end |
#can_download_album_only ⇒ Object
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_sample ⇒ Object
the track can be previewed
176 177 178 |
# File 'lib/rdio/datatypes.rb', line 176 def can_sample @can_sample end |
#can_stream ⇒ Object
the track can be streamed
170 171 172 |
# File 'lib/rdio/datatypes.rb', line 170 def can_stream @can_stream end |
#can_tether ⇒ Object
the track can be synced to mobile devices
173 174 175 |
# File 'lib/rdio/datatypes.rb', line 173 def can_tether @can_tether end |
#duration ⇒ Object
the duration of the track in seconds
143 144 145 |
# File 'lib/rdio/datatypes.rb', line 143 def duration @duration end |
#embed_url ⇒ Object
the URL of a SWF to embed the track
185 186 187 |
# File 'lib/rdio/datatypes.rb', line 185 def @embed_url end |
#icon ⇒ Object
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_clean ⇒ Object
is the track clean?
149 150 151 |
# File 'lib/rdio/datatypes.rb', line 149 def is_clean @is_clean end |
#is_explicit ⇒ Object
is the track explicit?
146 147 148 |
# File 'lib/rdio/datatypes.rb', line 146 def is_explicit @is_explicit end |
#length ⇒ Object
the number of tracks in the track, ie: 1
140 141 142 |
# File 'lib/rdio/datatypes.rb', line 140 def length @length end |
#name ⇒ Object
the name of the track
116 117 118 |
# File 'lib/rdio/datatypes.rb', line 116 def name @name end |
#play_count ⇒ Object
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 |
#price ⇒ Object
the price of the track in US cents
179 180 181 |
# File 'lib/rdio/datatypes.rb', line 179 def price @price end |
#short_url ⇒ Object
a short URL for the track
182 183 184 |
# File 'lib/rdio/datatypes.rb', line 182 def short_url @short_url end |
#type ⇒ Object
the object type, always “t”
137 138 139 |
# File 'lib/rdio/datatypes.rb', line 137 def type @type end |
#url ⇒ Object
the URL of the track on the Rdio web site
152 153 154 |
# File 'lib/rdio/datatypes.rb', line 152 def url @url end |