Class: ItunesApi::Music::Requests::Artist

Inherits:
Object
  • Object
show all
Includes:
Request
Defined in:
lib/itunes_api/music/requests/artist.rb

Overview

Allows querying the API via lookup for artists.

Instance Method Summary collapse

Methods included from Request

#results

Instance Method Details

#find_by_apple_id ⇒ Object



10
11
12
13
14
# File 'lib/itunes_api/music/requests/artist.rb', line 10

def find_by_apple_id
  return nil unless results.any?

  Results::Artist.new(results.first, store)
end