Sha256: b3f45c1108e3547cd6ee02bfd6b4b6d744898bc4182976a0af3b5ba2d8c7e4b4

Contents?: true

Size: 436 Bytes

Versions: 19

Compression:

Stored size: 436 Bytes

Contents

class Lastfm
  module MethodCategory
    class Auth < Base
      method_for_authentication :get_token, [], [] do |response|
        response.xml['token']
      end

      method_for_authentication :get_session, [:token], [] do |response|
        response.xml['session']
      end

      method_for_authentication :get_mobile_session, [:username, :authToken], [] do |response|
        response.xml['session']
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
lastfm-1.14.1 lib/lastfm/method_category/auth.rb
lastfm-1.14.0 lib/lastfm/method_category/auth.rb
lastfm-1.13.1 lib/lastfm/method_category/auth.rb
lastfm-1.13.0 lib/lastfm/method_category/auth.rb
lastfm-1.12.0 lib/lastfm/method_category/auth.rb
lastfm-1.11.0 lib/lastfm/method_category/auth.rb
lastfm-1.10.0 lib/lastfm/method_category/auth.rb
lastfm-1.9.0 lib/lastfm/method_category/auth.rb
lastfm-1.8.0 lib/lastfm/method_category/auth.rb
lastfm-1.7.0 lib/lastfm/method_category/auth.rb
lastfm-1.6.1 lib/lastfm/method_category/auth.rb
lastfm-1.6.0 lib/lastfm/method_category/auth.rb
lastfm-1.5.1 lib/lastfm/method_category/auth.rb
lastfm-1.5.0 lib/lastfm/method_category/auth.rb
lastfm-1.4.0 lib/lastfm/method_category/auth.rb
lastfm-1.3.0 lib/lastfm/method_category/auth.rb
lastfm-1.2.0 lib/lastfm/method_category/auth.rb
lastfm-1.1.1 lib/lastfm/method_category/auth.rb
lastfm-1.1.0 lib/lastfm/method_category/auth.rb