Class: AppleMusic::MusicVideo::Relationships

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

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(props = {}) ⇒ Relationships

Returns a new instance of Relationships.



9
10
11
12
13
# File 'lib/apple_music/music_video/relationships.rb', line 9

def initialize(props = {})
  @albums = Relationship.new(props['albums']).data
  @artists = Relationship.new(props['artists']).data
  @genres = Relationship.new(props['genres']).data
end

Instance Attribute Details

#albumsObject (readonly)

Returns the value of attribute albums.



7
8
9
# File 'lib/apple_music/music_video/relationships.rb', line 7

def albums
  @albums
end

#artistsObject (readonly)

Returns the value of attribute artists.



7
8
9
# File 'lib/apple_music/music_video/relationships.rb', line 7

def artists
  @artists
end

#genresObject (readonly)

Returns the value of attribute genres.



7
8
9
# File 'lib/apple_music/music_video/relationships.rb', line 7

def genres
  @genres
end