Module: Ronnie::Client::Tracks
- Included in:
- Ronnie::Client
- Defined in:
- lib/ronnie/client/tracks.rb
Instance Method Summary collapse
-
#find_tracks_by_artist(artist_id, options = {}) ⇒ Object
Find Tracks by Artist.
-
#find_tracks_by_isrc(isrc, options = {}) ⇒ Object
Find Tracks by ISRC.
-
#search_tracks(query, options = {}) ⇒ Object
Search Tracks.
-
#top_tracks(options = {}) ⇒ Object
retrieve the site-wide most popular tracks.
Instance Method Details
#find_tracks_by_artist(artist_id, options = {}) ⇒ Object
Find Tracks by Artist
9 10 11 |
# File 'lib/ronnie/client/tracks.rb', line 9 def find_tracks_by_artist(artist_id, ={}) post('getTracksForArtist', { artist: artist_id }) end |
#find_tracks_by_isrc(isrc, options = {}) ⇒ Object
Find Tracks by ISRC
18 19 20 |
# File 'lib/ronnie/client/tracks.rb', line 18 def find_tracks_by_isrc(isrc, ={}) post('getTracksByISRC', { isrc: isrc }) end |
#search_tracks(query, options = {}) ⇒ Object
Search Tracks
27 28 29 |
# File 'lib/ronnie/client/tracks.rb', line 27 def search_tracks(query, ={}) post('search', { query: query, types: 'Track' }) end |
#top_tracks(options = {}) ⇒ Object
retrieve the site-wide most popular tracks.
35 36 37 |
# File 'lib/ronnie/client/tracks.rb', line 35 def top_tracks(={}) post('getTopCharts', { type: "Track" }) end |