Class: Dance::Artists
Class Method Summary collapse
-
.info(id) ⇒ Object
Returns information on the given artist.
-
.tracks(id) ⇒ Object
Returns a list of tracks by the given artist.
Methods inherited from Client
#artists, #genres, #initialize, #tracks, #users
Constructor Details
This class inherits a constructor from Dance::Client
Class Method Details
.info(id) ⇒ Object
Returns information on the given artist. GET /artists/:id
6 7 8 |
# File 'lib/dance/artists.rb', line 6 def self.info(id) get('/artists/' + id.to_s) end |
.tracks(id) ⇒ Object
Returns a list of tracks by the given artist. GET /artists/:id/tracks
12 13 14 |
# File 'lib/dance/artists.rb', line 12 def self.tracks(id) get('/artists/' + id.to_s + '/tracks') end |