class Spotify::Models::User
Attributes
display_name[R]
external_urls[R]
followers[R]
href[R]
id[R]
images[R]
type[R]
uri[R]
Public Class Methods
new(args = {})
click to toggle source
Sets the arguments to its variables.
@param [Hash] args the arguments that will be placed on each variable.
@return [User] an user object.
# File lib/spotify/models/user.rb, line 17 def initialize(args = {}) args = Hash(args).with_indifferent_access # Array images = Array(args[:images]).map { |i| Spotify::Models::Image.new(i) } # Objects external_urls = Spotify::Models::ExternalURL.new(args[:external_urls]) follower = Spotify::Models::Follower.new(args[:followers]) @display_name = args[:display_name] @external_urls = external_urls @followers = follower @href = args[:href] @id = args[:id] @images = images @type = args[:type] @uri = args[:uri] end