Sha256: acc2a780ba053e195a09bf1618f8626d6e98b6d94465c4b3206250f59a974384

Contents?: true

Size: 400 Bytes

Versions: 3

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

module AppleMusic
  class AppleCurator < Resource
    # https://developer.apple.com/documentation/applemusicapi/applecurator/relationships
    class 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/apple_curator/relationships.rb
apple_music-0.3.0 lib/apple_music/apple_curator/relationships.rb
apple_music-0.2.0 lib/apple_music/apple_curator/relationships.rb