Class: Spotify::Models::Full::User
- Defined in:
- lib/spotify/models/full/user.rb
Instance Attribute Summary collapse
-
#birthdate ⇒ Object
readonly
Returns the value of attribute birthdate.
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#product ⇒ Object
readonly
Returns the value of attribute product.
Attributes inherited from User
#display_name, #external_urls, #followers, #href, #id, #images, #type, #uri
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Full::Artist
constructor
Sets the arguments to its variables.
Constructor Details
#initialize(args = {}) ⇒ Full::Artist
Sets the arguments to its variables.
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
#birthdate ⇒ Object (readonly)
Returns the value of attribute birthdate.
7 8 9 |
# File 'lib/spotify/models/full/user.rb', line 7 def birthdate @birthdate end |
#country ⇒ Object (readonly)
Returns the value of attribute country.
7 8 9 |
# File 'lib/spotify/models/full/user.rb', line 7 def country @country end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
7 8 9 |
# File 'lib/spotify/models/full/user.rb', line 7 def email @email end |
#product ⇒ Object (readonly)
Returns the value of attribute product.
7 8 9 |
# File 'lib/spotify/models/full/user.rb', line 7 def product @product end |