Class: Bandcamp::Base
Class Attribute Summary collapse
Class Method Summary collapse
Class Attribute Details
.api_key ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/bandcamp.rb', line 12 def api_key if @api_key.nil? raise 'NoAPIKeyGiven' else return @api_key end end |
Class Method Details
.url(search) ⇒ Object
20 21 22 |
# File 'lib/bandcamp.rb', line 20 def url(search) get("/url/1/info", :query => { :key => api_key, :url => search }) end |