Class: AppleMusic::Genre::Attributes

Inherits:
Object
  • Object
show all
Defined in:
lib/apple_music/genre/attributes.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(props = {}) ⇒ Attributes

Returns a new instance of Attributes.



9
10
11
# File 'lib/apple_music/genre/attributes.rb', line 9

def initialize(props = {})
  @name = props['name'] # required
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/apple_music/genre/attributes.rb', line 7

def name
  @name
end