Class: Rdio::UserData
Direct Known Subclasses
Instance Attribute Summary collapse
-
#base_icon ⇒ Object
the URL of an image of the user.
-
#display_name ⇒ Object
how to display the user’s name.
-
#first_name ⇒ Object
the first name of the user.
-
#gender ⇒ Object
“m” or “f”.
-
#icon ⇒ Object
the URL of an image of the user.
-
#last_name ⇒ Object
the last name of the user.
-
#last_song_play_time ⇒ Object
when the last played song was played.
-
#last_song_played ⇒ Object
the last song the user has played.
-
#library_version ⇒ Object
the library version of the user, used to determine if a user’s collection has changed.
-
#track_count ⇒ Object
the number of tracks in the user’s collection.
-
#type ⇒ Object
the object type, always “s”.
-
#url ⇒ Object
the URL of the user on the Rdio site.
-
#username ⇒ Object
the user’s vanity name.
Attributes inherited from BaseObj
Attributes inherited from ApiObj
Instance Method Summary collapse
-
#initialize(api) ⇒ UserData
constructor
A new instance of UserData.
Methods inherited from BaseObj
Methods inherited from ApiObj
Constructor Details
#initialize(api) ⇒ UserData
Returns a new instance of UserData.
242 243 244 |
# File 'lib/rdio/datatypes.rb', line 242 def initialize(api) super api end |
Instance Attribute Details
#base_icon ⇒ Object
the URL of an image of the user
256 257 258 |
# File 'lib/rdio/datatypes.rb', line 256 def base_icon @base_icon end |
#display_name ⇒ Object
how to display the user’s name
277 278 279 |
# File 'lib/rdio/datatypes.rb', line 277 def display_name @display_name end |
#first_name ⇒ Object
the first name of the user
247 248 249 |
# File 'lib/rdio/datatypes.rb', line 247 def first_name @first_name end |
#gender ⇒ Object
“m” or “f”
265 266 267 |
# File 'lib/rdio/datatypes.rb', line 265 def gender @gender end |
#icon ⇒ Object
the URL of an image of the user
253 254 255 |
# File 'lib/rdio/datatypes.rb', line 253 def icon @icon end |
#last_name ⇒ Object
the last name of the user
250 251 252 |
# File 'lib/rdio/datatypes.rb', line 250 def last_name @last_name end |
#last_song_play_time ⇒ Object
when the last played song was played
283 284 285 |
# File 'lib/rdio/datatypes.rb', line 283 def last_song_play_time @last_song_play_time end |
#last_song_played ⇒ Object
the last song the user has played
274 275 276 |
# File 'lib/rdio/datatypes.rb', line 274 def last_song_played @last_song_played end |
#library_version ⇒ Object
the library version of the user, used to determine if a user’s collection has changed
259 260 261 |
# File 'lib/rdio/datatypes.rb', line 259 def library_version @library_version end |
#track_count ⇒ Object
the number of tracks in the user’s collection
280 281 282 |
# File 'lib/rdio/datatypes.rb', line 280 def track_count @track_count end |
#type ⇒ Object
the object type, always “s”
268 269 270 |
# File 'lib/rdio/datatypes.rb', line 268 def type @type end |
#url ⇒ Object
the URL of the user on the Rdio site
262 263 264 |
# File 'lib/rdio/datatypes.rb', line 262 def url @url end |
#username ⇒ Object
the user’s vanity name
271 272 273 |
# File 'lib/rdio/datatypes.rb', line 271 def username @username end |