Sha256: c96b6da7d80dda10a252af4596eac82a35fce34a4ff21ac64fcd8977b0c78276
Contents?: true
Size: 882 Bytes
Versions: 2
Compression:
Stored size: 882 Bytes
Contents
class Lastfm module MethodCategory class Artist < Base regular_method :get_top_tracks, [:artist], [] do |response| response.xml['toptracks']['track'] end regular_method :get_top_albums, [:artist], [] do |response| response.xml['topalbums']['album'] end regular_method :get_info, [:artist], [] do |response| response.xml['artist'] end regular_method :get_events, [:artist], [] do |response| response.xml['events']['event'] end regular_method :get_similar, [:artist], [] do |response| response.xml['similarartists']['artist'] end regular_method :get_tags, [:artist], [[:user, nil], [:mbid, nil], [:autocorrect, nil]] do |response| response.xml['tags']['tag'] end regular_method :search, [:artist], [[:limit, nil], [:page, nil]] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lastfm-1.10.0 | lib/lastfm/method_category/artist.rb |
lastfm-1.9.0 | lib/lastfm/method_category/artist.rb |