Class: Rdio::UserData

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

Direct Known Subclasses

User

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

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_nameObject

how to display the user’s name



277
278
279
# File 'lib/rdio/datatypes.rb', line 277

def display_name
  @display_name
end

#first_nameObject

the first name of the user



247
248
249
# File 'lib/rdio/datatypes.rb', line 247

def first_name
  @first_name
end

#genderObject

“m” or “f”



265
266
267
# File 'lib/rdio/datatypes.rb', line 265

def gender
  @gender
end

#iconObject

the URL of an image of the user



253
254
255
# File 'lib/rdio/datatypes.rb', line 253

def icon
  @icon
end

#last_nameObject

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_timeObject

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_playedObject

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_versionObject

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_countObject

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

#typeObject

the object type, always “s”



268
269
270
# File 'lib/rdio/datatypes.rb', line 268

def type
  @type
end

#urlObject

the URL of the user on the Rdio site



262
263
264
# File 'lib/rdio/datatypes.rb', line 262

def url
  @url
end

#usernameObject

the user’s vanity name



271
272
273
# File 'lib/rdio/datatypes.rb', line 271

def username
  @username
end