Class: Scrobbler2::Artist
Instance Method Summary collapse
- #add_tags(tags) ⇒ Object
-
#initialize(artist) ⇒ Artist
constructor
A new instance of Artist.
Methods inherited from Base
get, get_with_auth, has_resource, has_singleton_resource, http_with_auth, post_with_auth, query_signature, sign
Constructor Details
#initialize(artist) ⇒ Artist
Returns a new instance of Artist.
5 6 7 |
# File 'lib/scrobbler2/artist.rb', line 5 def initialize(artist) @query = {:artist => artist} end |
Instance Method Details
#add_tags(tags) ⇒ Object
20 21 22 23 |
# File 'lib/scrobbler2/artist.rb', line 20 def () query = @query.merge :tags => .join(",") self.class.post_with_auth("artist.addtags", query) end |