Class: Echonest::ApiMethods::Song
Instance Method Summary collapse
-
#identify(opts) ⇒ Object
method_with_option(:identify, %w[query code artist title release duration genre bucket]).
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 |