Class: ITunesSearchAPI
- Inherits:
-
Object
- Object
- ITunesSearchAPI
- Includes:
- HTTParty
- Defined in:
- lib/itunes-search-api.rb
Class Method Summary collapse
Class Method Details
.lookup(query = {}) ⇒ Object
13 14 15 16 17 |
# File 'lib/itunes-search-api.rb', line 13 def lookup(query={}) if results = get("/wsLookup", :query => query)["results"] results[0] end end |
.search(query = {}) ⇒ Object
9 10 11 |
# File 'lib/itunes-search-api.rb', line 9 def search(query={}) get("/wsSearch", :query => query)["results"] end |