Sha256: ca58539f4a1275b9c89176fee0e7572162dfe5e497c3e750c095224d572a4974

Contents?: true

Size: 425 Bytes

Versions: 23

Compression:

Stored size: 425 Bytes

Contents

class Lastfm
  module MethodCategory
    class Library < Base
      regular_method :get_artists, [:user], [[:limit, nil], [:page, nil]] do |response|
        Util.force_array(response.xml['artists']['artist'])
      end

      regular_method :get_tracks, [:user], [[:artist, nil], [:album, nil], [:page, nil], [:limit, nil]] do |response|
        Util.force_array(response.xml['tracks']['track'])
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
lastfm-1.17.0 lib/lastfm/method_category/library.rb
lastfm-1.16.0 lib/lastfm/method_category/library.rb
lastfm-1.15.1 lib/lastfm/method_category/library.rb
lastfm-1.15.0 lib/lastfm/method_category/library.rb
lastfm-1.14.1 lib/lastfm/method_category/library.rb
lastfm-1.14.0 lib/lastfm/method_category/library.rb
lastfm-1.13.1 lib/lastfm/method_category/library.rb
lastfm-1.13.0 lib/lastfm/method_category/library.rb
lastfm-1.12.0 lib/lastfm/method_category/library.rb
lastfm-1.11.0 lib/lastfm/method_category/library.rb
lastfm-1.10.0 lib/lastfm/method_category/library.rb
lastfm-1.9.0 lib/lastfm/method_category/library.rb
lastfm-1.8.0 lib/lastfm/method_category/library.rb
lastfm-1.7.0 lib/lastfm/method_category/library.rb
lastfm-1.6.1 lib/lastfm/method_category/library.rb
lastfm-1.6.0 lib/lastfm/method_category/library.rb
lastfm-1.5.1 lib/lastfm/method_category/library.rb
lastfm-1.5.0 lib/lastfm/method_category/library.rb
lastfm-1.4.0 lib/lastfm/method_category/library.rb
lastfm-1.3.0 lib/lastfm/method_category/library.rb