Class: AppleMusic::Genre::Attributes
- Inherits:
-
Object
- Object
- AppleMusic::Genre::Attributes
- Defined in:
- lib/apple_music/genre/attributes.rb
Overview
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(props = {}) ⇒ Attributes
constructor
A new instance of Attributes.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/apple_music/genre/attributes.rb', line 7 def name @name end |