Class: Echonest::ApiMethods::Song

Inherits:
Base
  • Object
show all
Defined in:
lib/echonest/api.rb

Instance Method Summary collapse

Methods inherited from Base

build_params_with_validation, #initialize, method_with_option, method_with_required_any, #request, validator

Constructor Details

This class inherits a constructor from Echonest::ApiMethods::Base

Instance Method Details

#identify(opts) ⇒ Object

method_with_option(:identify, %w[query code artist title release duration genre bucket])



325
326
327
328
# File 'lib/echonest/api.rb', line 325

def identify(opts)
  file = opts.delete(:code)
  @api.request('song/identify', :post, opts, file).body
end