Class: Songstats::Api::Chart
- Includes:
- HTTParty
- Defined in:
- lib/songstats/api/chart.rb
Overview
Chart class for the Songstats API
Constant Summary
Constants inherited from Base
Base::ISRC_LENGTH, Base::SONG_STATS_ID_LENGTH
Instance Method Summary collapse
-
#initialize ⇒ Chart
constructor
A new instance of Chart.
- #tracks(options = {}) ⇒ Object
Constructor Details
Instance Method Details
#tracks(options = {}) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/songstats/api/chart.rb', line 19 def tracks( = {}) [:source] = "all" unless .key? :source [:country_code] = "US" unless .key? :country_code fetch path("/charts/tracks", ) end |