Sha256: bd76b62f00ef8ddd12be8ac1e9fd36772feb7ad549f8104b5dd313874c14f5d0

Contents?: true

Size: 544 Bytes

Versions: 6

Compression:

Stored size: 544 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
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lastfm-1.22.0 lib/lastfm/method_category/tag.rb
lastfm-1.21.0 lib/lastfm/method_category/tag.rb
lastfm-1.20.1 lib/lastfm/method_category/tag.rb
lastfm-1.19.1 lib/lastfm/method_category/tag.rb
lastfm-1.19.0 lib/lastfm/method_category/tag.rb
lastfm-1.18.0 lib/lastfm/method_category/tag.rb