Class: TopDMC::Resources::Artist
- Inherits:
-
Base
- Object
- Base
- TopDMC::Resources::Artist
show all
- Defined in:
- lib/topdmc/resources/artist.rb
Instance Method Summary
collapse
Methods included from Utils
#hmac_sha1_signature, #nonce
Constructor Details
#initialize(client) ⇒ Artist
Returns a new instance of Artist.
6
7
8
|
# File 'lib/topdmc/resources/artist.rb', line 6
def initialize(client)
super(client)
end
|
Instance Method Details
#et_tracks(id) ⇒ Object
22
23
24
|
# File 'lib/topdmc/resources/artist.rb', line 22
def et_tracks(id)
perform_request('GET', "/v1/artists/#{id}/tracks")
end
|
#find(id) ⇒ Object
10
11
12
|
# File 'lib/topdmc/resources/artist.rb', line 10
def find(id)
perform_request('GET', "/v1/artists/#{id}")
end
|
#find_all_by_ids(ids) ⇒ Object
14
15
16
|
# File 'lib/topdmc/resources/artist.rb', line 14
def find_all_by_ids(ids)
perform_request('GET', "/v1/artists", {ids: ids.join(',')})
end
|
#get_albums(id) ⇒ Object
18
19
20
|
# File 'lib/topdmc/resources/artist.rb', line 18
def get_albums(id)
perform_request('GET', "/v1/artists/#{id}/albums")
end
|