Class: AppleMusic::Relationship

Inherits:
Object
  • Object
show all
Defined in:
lib/apple_music/relationship.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (readonly)

Returns the value of attribute data.



6
7
8
# File 'lib/apple_music/relationship.rb', line 6

def data
  @data
end

#hrefObject (readonly)

Returns the value of attribute href.



6
7
8
# File 'lib/apple_music/relationship.rb', line 6

def href
  @href
end

#metaObject (readonly)

Returns the value of attribute meta.



6
7
8
# File 'lib/apple_music/relationship.rb', line 6

def meta
  @meta
end

#nextObject (readonly)

Returns the value of attribute next.



6
7
8
# File 'lib/apple_music/relationship.rb', line 6

def next
  @next
end