Class: Rocksky::Resources::Charts
- Defined in:
- lib/rocksky/resources/charts.rb
Overview
‘app.rocksky.charts.*` endpoints.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#get_scrobbles_chart(did: nil, artist_uri: nil, album_uri: nil, song_uri: nil, genre: nil, from: nil, to: nil) ⇒ Object
Scrobble chart data.
-
#get_top_artists(limit: nil, offset: nil, start_date: nil, end_date: nil) ⇒ Object
Top artists.
-
#get_top_tracks(limit: nil, offset: nil, start_date: nil, end_date: nil) ⇒ Object
Top tracks.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Rocksky::Resources::Base
Instance Method Details
#get_scrobbles_chart(did: nil, artist_uri: nil, album_uri: nil, song_uri: nil, genre: nil, from: nil, to: nil) ⇒ Object
Scrobble chart data.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/rocksky/resources/charts.rb', line 6 def get_scrobbles_chart(did: nil, artist_uri: nil, album_uri: nil, song_uri: nil, genre: nil, from: nil, to: nil) query("app.rocksky.charts.getScrobblesChart", did: did, artisturi: artist_uri, albumuri: album_uri, songuri: song_uri, genre: genre, from: from, to: to) end |
#get_top_artists(limit: nil, offset: nil, start_date: nil, end_date: nil) ⇒ Object
Top artists.
19 20 21 22 23 |
# File 'lib/rocksky/resources/charts.rb', line 19 def get_top_artists(limit: nil, offset: nil, start_date: nil, end_date: nil) query("app.rocksky.charts.getTopArtists", limit: limit, offset: offset, startDate: start_date, endDate: end_date) end |
#get_top_tracks(limit: nil, offset: nil, start_date: nil, end_date: nil) ⇒ Object
Top tracks.
26 27 28 29 30 |
# File 'lib/rocksky/resources/charts.rb', line 26 def get_top_tracks(limit: nil, offset: nil, start_date: nil, end_date: nil) query("app.rocksky.charts.getTopTracks", limit: limit, offset: offset, startDate: start_date, endDate: end_date) end |