Class: Scrobbler2::Artist

Inherits:
Base
  • Object
show all
Defined in:
lib/scrobbler2/artist.rb

Instance Method Summary collapse

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 add_tags(tags)
  query = @query.merge :tags => tags.join(",")
  self.class.post_with_auth("artist.addtags", query)
end