Sha256: c7eb2310b28db5c7b2c8b70699e18f2558c3d0aa912da0acf1091fc49ce5d946
Contents?: true
Size: 1.72 KB
Versions: 4
Compression:
Stored size: 1.72 KB
Contents
class Lastfm module MethodCategory class Artist < Base regular_method( :get_top_tracks, :required => [:artist] ) do |response| response.xml['toptracks']['track'] end regular_method( :get_top_albums, :required => [:artist] ) do |response| response.xml['topalbums']['album'] end regular_method( :get_info, :required => [:artist] ) do |response| response.xml['artist'] end regular_method( :get_events, :required => [:artist] ) do |response| response.xml['events']['event'] end regular_method( :get_images, :required => [:artist] ) do |response| response.xml['images']['image'] end regular_method(:get_similar, :required => [:artist] ) do |response| response.xml['similarartists']['artist'] end regular_method( :get_tags, :required => [:artist], :optional => [ [:user, nil], [:mbid, nil], [:autocorrect, nil] ] ) do |response| response.xml['tags']['tag'] end regular_method( :get_top_fans, :required => [:artist] ) do |response| response.xml['topfans']['user'] end regular_method( :get_top_tags, :required => [:artist], :optional => [ [:mbid, nil], [:autocorrect, nil] ] ) do |response| response.xml['toptags']['tag'] end regular_method( :search, :required => [:artist], :optional => [ [:limit, nil], [:page, nil] ] ) end end end
Version data entries
4 entries across 4 versions & 1 rubygems