Sha256: 61ddec791effdb69751a808401db3ac19aa38aa30bbec7c2c5dc6e9467e2c9e4

Contents?: true

Size: 399 Bytes

Versions: 3

Compression:

Stored size: 399 Bytes

Contents

# frozen_string_literal: true

module AppleMusic
  class Curator < Resource
    # https://developer.apple.com/documentation/applemusicapi/curator/relationships
    class Curator::Relationships
      attr_reader :playlists

      def initialize(props = {})
        @playlists = Relationship.new(props['playlists']).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/curator/relationships.rb
apple_music-0.3.0 lib/apple_music/curator/relationships.rb
apple_music-0.2.0 lib/apple_music/curator/relationships.rb