Sha256: 4de9a33dc6706cb1b5b9decc1d747e6f13a2a6d885a5638c6b1aeb124697ffdf

Contents?: true

Size: 462 Bytes

Versions: 1

Compression:

Stored size: 462 Bytes

Contents

module ItunesApi
  module Music
    # Artist or Band resulting from a specific lookup
    class ArtistLookup
      attr_reader_init :artist_id, :store
      selfie :artist, :store

      def artist
        build_artist
      end

      private

      def build_artist
        return lookup unless lookup

        Artist.new(lookup)
      end

      def lookup
        @lookup ||= Requests::Lookup.artist_with_albums(artist_id, store)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
itunes_api-1.0.0 lib/itunes_api/music/artist_lookup.rb