Sha256: 43daa17be40e0443d3b5c2f9a24237ac635ef758d8e4aa8bf452d9163c385ffb

Contents?: true

Size: 995 Bytes

Versions: 2

Compression:

Stored size: 995 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_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 :search, [:artist], [[:limit, nil], [:page, nil]]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lastfm-1.12.0 lib/lastfm/method_category/artist.rb
lastfm-1.11.0 lib/lastfm/method_category/artist.rb