Sha256: 30177617b5b33666f1b9d9c6d0d705764b35871a09bffec7e8861280180e53e5

Contents?: true

Size: 442 Bytes

Versions: 4

Compression:

Stored size: 442 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_secure_authentication :get_mobile_session, [:username, :password], [] do |response|
        response.xml['session']
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lastfm-1.17.0 lib/lastfm/method_category/auth.rb
lastfm-1.16.0 lib/lastfm/method_category/auth.rb
lastfm-1.15.1 lib/lastfm/method_category/auth.rb
lastfm-1.15.0 lib/lastfm/method_category/auth.rb