Sha256: 276725683dc717a68531924929d2c1837edcaf0e8d336aa5fae016f0b14a76a7

Contents?: true

Size: 347 Bytes

Versions: 3

Compression:

Stored size: 347 Bytes

Contents

# frozen_string_literal: true

module AppleMusic
  class Genre < Resource
    # https://developer.apple.com/documentation/applemusicapi/genre/attributes
    class Attributes
      attr_reader :name

      def initialize(props = {})
        @name = props['name'] # 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/genre/attributes.rb
apple_music-0.3.0 lib/apple_music/genre/attributes.rb
apple_music-0.2.0 lib/apple_music/genre/attributes.rb