Sha256: 60944ea42a11df1f489dc3cb4f81193eba37e58c8a2bbe599b42a28a95cdae7d

Contents?: true

Size: 380 Bytes

Versions: 2

Compression:

Stored size: 380 Bytes

Contents

module ItunesApi
  module Music
    # Artist or Band from the Apple catalog
    class Artist
      attr_reader_init :data, :store
      private :data

      def albums
        @albums ||= Album.build(data[:albums], store)
      end

      def apple_id
        @apple_id ||= data[:artistId]
      end

      def name
        @name ||= data[:artistName]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
itunes_api-1.2.0 lib/itunes_api/music/artist.rb
itunes_api-1.1.0 lib/itunes_api/music/artist.rb