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