# frozen_string_literal: true module AppleMusic class Curator < Resource # https://developer.apple.com/documentation/applemusicapi/curator/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