Class: Spotify::Models::Full::User

Inherits:
User
  • Object
show all
Defined in:
lib/spotify/models/full/user.rb

Instance Attribute Summary collapse

Attributes inherited from User

#display_name, #external_urls, #followers, #href, #id, #images, #type, #uri

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Full::Artist

Sets the arguments to its variables.

Parameters:

  • args (Hash) (defaults to: {})

    the arguments that will be placed on each variable.



16
17
18
19
20
21
22
23
24
25
# File 'lib/spotify/models/full/user.rb', line 16

def initialize(args = {})
  super(args)

  args = Hash(args).with_indifferent_access

  @birthdate = args[:birthdate]
  @country   = args[:country]
  @email     = args[:email]
  @product   = args[:product]
end

Instance Attribute Details

#birthdateObject (readonly)

Returns the value of attribute birthdate.



7
8
9
# File 'lib/spotify/models/full/user.rb', line 7

def birthdate
  @birthdate
end

#countryObject (readonly)

Returns the value of attribute country.



7
8
9
# File 'lib/spotify/models/full/user.rb', line 7

def country
  @country
end

#emailObject (readonly)

Returns the value of attribute email.



7
8
9
# File 'lib/spotify/models/full/user.rb', line 7

def email
  @email
end

#productObject (readonly)

Returns the value of attribute product.



7
8
9
# File 'lib/spotify/models/full/user.rb', line 7

def product
  @product
end