Sha256: f856070719b89662e4d58b82f711fb7d57b1f22d8207c1db22952b6bd8313602

Contents?: true

Size: 1.09 KB

Versions: 8

Compression:

Stored size: 1.09 KB

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_images, [:artist], [] do |response|
        response.xml['images']['image']
      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 :get_top_fans, [:artist], [] do |response|
        response.xml['topfans']['user']
      end

      regular_method :search, [:artist], [[:limit, nil], [:page, nil]]
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lastfm-1.17.0 lib/lastfm/method_category/artist.rb
lastfm-1.16.0 lib/lastfm/method_category/artist.rb
lastfm-1.15.1 lib/lastfm/method_category/artist.rb
lastfm-1.15.0 lib/lastfm/method_category/artist.rb
lastfm-1.14.1 lib/lastfm/method_category/artist.rb
lastfm-1.14.0 lib/lastfm/method_category/artist.rb
lastfm-1.13.1 lib/lastfm/method_category/artist.rb
lastfm-1.13.0 lib/lastfm/method_category/artist.rb