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