Sha256: a5a00735fdd82ace02adde4f3beea0279f31578d471905173d96843a96cabc4f
Contents?: true
Size: 512 Bytes
Versions: 3
Compression:
Stored size: 512 Bytes
Contents
# frozen_string_literal: true module AppleMusic class Album < Resource # https://developer.apple.com/documentation/applemusicapi/album/relationships class Relationships attr_reader :artists, :genres, :tracks def initialize(props = {}) @artists = Relationship.new(props['artists']).data @genres = Relationship.new(props['genres']).data @tracks = Relationship.new(props['tracks']).data 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/album/relationships.rb |
apple_music-0.3.0 | lib/apple_music/album/relationships.rb |
apple_music-0.2.0 | lib/apple_music/album/relationships.rb |