Sha256: 78489e6f0f816d0572b46da410b1c9514464fdcfda6e8b487a4a8e10a8472c9d
Contents?: true
Size: 678 Bytes
Versions: 3
Compression:
Stored size: 678 Bytes
Contents
# frozen_string_literal: true module AppleMusic class Artist < Resource # https://developer.apple.com/documentation/applemusicapi/artist/relationships class Relationships attr_reader :albums, :genres, :music_videos, :playlists, :station def initialize(props = {}) @albums = Relationship.new(props['albums']).data @genres = Relationship.new(props['genres']).data @music_videos = Relationship.new(props['musicVideos']).data @playlists = Relationship.new(props['playlists']).data @station = Relationship.new(props['station']).data.first end end self.relationships_model = self::Relationships end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
apple_music-0.3.1 | lib/apple_music/artist/relationships.rb |
apple_music-0.3.0 | lib/apple_music/artist/relationships.rb |
apple_music-0.2.0 | lib/apple_music/artist/relationships.rb |