Sha256: 5eb00348f32a60c719e2e140839ed77c281155b5d18bb3084282f2b5d879cc1c
Contents?: true
Size: 592 Bytes
Versions: 3
Compression:
Stored size: 592 Bytes
Contents
# frozen_string_literal: true module AppleMusic class AppleCurator < Resource # https://developer.apple.com/documentation/applemusicapi/applecurator/attributes class Attributes attr_reader :artwork, :editorial_notes, :name, :url def initialize(props = {}) @artwork = Artwork.new(props['artwork']) # required @editorial_notes = EditorialNotes.new(props['editorialNotes']) if props['editorialNotes'] @name = props['name'] # required @url = props['url'] # required end end self.attributes_model = self::Attributes end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
apple_music-0.3.1 | lib/apple_music/apple_curator/attributes.rb |
apple_music-0.3.0 | lib/apple_music/apple_curator/attributes.rb |
apple_music-0.2.0 | lib/apple_music/apple_curator/attributes.rb |