Skip to content

Instantly share code, notes, and snippets.

@thomasbiddle
Created August 4, 2013 18:51
Show Gist options
  • Save thomasbiddle/6151430 to your computer and use it in GitHub Desktop.
Save thomasbiddle/6151430 to your computer and use it in GitHub Desktop.
def artists(query)
results = search('artist', query)
artists = []
results['artists'].each do |artist|
artists << Resources::Artist.new(artist)
end
Resources::Base.new(results['info'], artists)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment