Sha256: d799857e0390316aa1b06d8093e508c8a1ef441690ac0c42a13a21cc08b077c8
Contents?: true
Size: 1012 Bytes
Versions: 2
Compression:
Stored size: 1012 Bytes
Contents
class Lastfm module MethodCategory class Tag < Base regular_method( :get_top_artists, :required => [:tag], :optional => [ [:limit, nil], [:page, nil] ] ) do |response| response.xml['topartists']['artist'] end regular_method( :get_top_tracks, :required => [:tag], :optional => [ [:limit, nil], [:page, nil] ] ) do |response| response.xml['toptracks']['track'] end regular_method( :get_top_albums, :required => [:tag], :optional => [ [:limit, nil], [:page, nil] ] ) do |response| response.xml['topalbums']['album'] end regular_method( :search, :required => [:tag], :optional => [ [:limit, nil], [:page, nil] ] ) do |response| response.xml['results']['tagmatches']['tag'] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lastfm-1.24.0 | lib/lastfm/method_category/tag.rb |
lastfm-1.23.0 | lib/lastfm/method_category/tag.rb |