Sha256: 857e47b4e53b47493328f39342f1456f9a48b3340cde0f537c4312b7dc569d1a
Contents?: true
Size: 578 Bytes
Versions: 3
Compression:
Stored size: 578 Bytes
Contents
# frozen_string_literal: true module AppleMusic class Artist < Resource # https://developer.apple.com/documentation/applemusicapi/artist/attributes class Attributes attr_reader :editorial_notes, :genre_names, :name, :url def initialize(props = {}) @editorial_notes = EditorialNotes.new(props['editorialNotes']) if props['editorialNotes'] @genre_names = props['genreNames'] # required @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/artist/attributes.rb |
apple_music-0.3.0 | lib/apple_music/artist/attributes.rb |
apple_music-0.2.0 | lib/apple_music/artist/attributes.rb |