Class: Spotify::Models::Copyright
- Inherits:
-
Object
- Object
- Spotify::Models::Copyright
- Defined in:
- lib/spotify/models/copyright.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Image
constructor
Sets the arguments to its variables.
Constructor Details
#initialize(args = {}) ⇒ Image
Sets the arguments to its variables.
16 17 18 19 20 21 |
# File 'lib/spotify/models/copyright.rb', line 16 def initialize(args = {}) args = Hash(args).with_indifferent_access @text = args[:text] @type = args[:type] end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
7 8 9 |
# File 'lib/spotify/models/copyright.rb', line 7 def text @text end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/spotify/models/copyright.rb', line 7 def type @type end |