Sha256: 3ba254b80d76d3ab2c287d8af15aed8d2f549a0192d8af97713f35909551bd26

Contents?: true

Size: 366 Bytes

Versions: 2

Compression:

Stored size: 366 Bytes

Contents

class Lastfm
  module MethodCategory
    class Tag < Base
      regular_method :get_top_artists, [:tag], [[:limit, nil], [:page, nil]] do |response|
        response.xml['topartists']['artist']
      end

      regular_method :get_top_tracks, [:tag], [[:limit, nil], [:page, nil]] do |response|
        response.xml['toptracks']['track']
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lastfm-1.17.0 lib/lastfm/method_category/tag.rb
lastfm-1.16.0 lib/lastfm/method_category/tag.rb