Class: MusixMatch::API::Search

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

Constant Summary

Constants inherited from Base

Base::API_URL

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#api_key, api_key, api_key=, get, #get, perform_get_request, url_for, url_path_for

Class Method Details

.search_track(options = {}) ⇒ Object



9
10
11
# File 'lib/musix_match/api/search.rb', line 9

def self.search_track(options={})
  Search.new.search_track(options)
end

Instance Method Details

#search_track(options = {}) ⇒ Object



4
5
6
7
# File 'lib/musix_match/api/search.rb', line 4

def search_track(options={})
  response = get('track.search', options)
  TrackSearchResult.new(response)
end