Class: AppleMusic::Artist::Attributes
- Inherits:
-
Object
- Object
- AppleMusic::Artist::Attributes
- Defined in:
- lib/apple_music/artist/attributes.rb
Overview
Instance Attribute Summary collapse
-
#editorial_notes ⇒ Object
readonly
Returns the value of attribute editorial_notes.
-
#genre_names ⇒ Object
readonly
Returns the value of attribute genre_names.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
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 12 13 14 |
# File 'lib/apple_music/artist/attributes.rb', line 9 def initialize(props = {}) @editorial_notes = EditorialNotes.new(props['editorialNotes']) if props['editorialNotes'] @genre_names = props['genreNames'] # required @name = props['name'] # required @url = props['url'] # required end |
Instance Attribute Details
#editorial_notes ⇒ Object (readonly)
Returns the value of attribute editorial_notes.
7 8 9 |
# File 'lib/apple_music/artist/attributes.rb', line 7 def editorial_notes @editorial_notes end |
#genre_names ⇒ Object (readonly)
Returns the value of attribute genre_names.
7 8 9 |
# File 'lib/apple_music/artist/attributes.rb', line 7 def genre_names @genre_names end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/apple_music/artist/attributes.rb', line 7 def name @name end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
7 8 9 |
# File 'lib/apple_music/artist/attributes.rb', line 7 def url @url end |