Class: Spotify::Models::Copyright

Inherits:
Object
  • Object
show all
Defined in:
lib/spotify/models/copyright.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Image

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
# 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

#textObject (readonly)

Returns the value of attribute text.



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

def text
  @text
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end