Sha256: f6c4c6369c65adf4df91a9d646e73f8beb7bd82820e0409dacd404453423e3ab
Contents?: true
Size: 646 Bytes
Versions: 3
Compression:
Stored size: 646 Bytes
Contents
# frozen_string_literal: true module ItunesApi module Music module Requests # Allows querying the API via lookup for artists. class Artist include Request attr_reader_init :search_id, :store selfie :find_by_id def find_by_id unwrapped_results(:artist).map do |result| Results::Artist.new(result, store) end end private def action 'lookup' end def query { id: search_id, country: store.to_s.upcase, limit: LIMIT } end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
itunes_api-2.4.1 | lib/itunes_api/music/requests/artist.rb |
itunes_api-2.4.0 | lib/itunes_api/music/requests/artist.rb |
itunes_api-2.3.2 | lib/itunes_api/music/requests/artist.rb |