Class: MusixMatch::API::TrackChart

Inherits:
Base
  • Object
show all
Defined in:
lib/musix_match/api/track_chart.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

.get_chart(options = {}) ⇒ Object



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

def self.get_chart(options={})
  TrackChart.new.get_chart(options)
end

Instance Method Details

#get_chart(options = {}) ⇒ Object



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

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