Class: ItunesApi::Requests::Search
- Inherits:
-
Object
- Object
- ItunesApi::Requests::Search
- Includes:
- Base
- Defined in:
- lib/itunes_api/requests/search.rb
Overview
Fetch all the artist ids corresponding to a search term
Instance Method Summary collapse
Methods included from Base
Instance Method Details
#artist_ids ⇒ Object
9 10 11 12 13 |
# File 'lib/itunes_api/requests/search.rb', line 9 def artist_ids results.collect do |result| result['artistId'] end.compact.uniq.sort end |