Class: AppleMusic::Album::Relationships
- Inherits:
-
Object
- Object
- AppleMusic::Album::Relationships
- Defined in:
- lib/apple_music/album/relationships.rb
Overview
Instance Attribute Summary collapse
-
#artists ⇒ Object
readonly
Returns the value of attribute artists.
-
#genres ⇒ Object
readonly
Returns the value of attribute genres.
-
#tracks ⇒ Object
readonly
Returns the value of attribute tracks.
Instance Method Summary collapse
-
#initialize(props = {}) ⇒ Relationships
constructor
A new instance of Relationships.
Constructor Details
#initialize(props = {}) ⇒ Relationships
Returns a new instance of Relationships.
9 10 11 12 13 |
# File 'lib/apple_music/album/relationships.rb', line 9 def initialize(props = {}) @artists = Relationship.new(props['artists']).data @genres = Relationship.new(props['genres']).data @tracks = Relationship.new(props['tracks']).data end |
Instance Attribute Details
#artists ⇒ Object (readonly)
Returns the value of attribute artists.
7 8 9 |
# File 'lib/apple_music/album/relationships.rb', line 7 def artists @artists end |
#genres ⇒ Object (readonly)
Returns the value of attribute genres.
7 8 9 |
# File 'lib/apple_music/album/relationships.rb', line 7 def genres @genres end |
#tracks ⇒ Object (readonly)
Returns the value of attribute tracks.
7 8 9 |
# File 'lib/apple_music/album/relationships.rb', line 7 def tracks @tracks end |