Sha256: b37f838cf2d6314d2144f8dc6bb690ae316a3eacf54c34acf93e8f220c64ee92

Contents?: true

Size: 502 Bytes

Versions: 15

Compression:

Stored size: 502 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,
        :required => [:token]
      ) do |response|
        response.xml['session']
      end

      method_for_secure_authentication(
        :get_mobile_session,
        :required => [:username, :password]
      ) do |response|
        response.xml['session']
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
lastfm-1.27.4 lib/lastfm/method_category/auth.rb
lastfm-1.27.3 lib/lastfm/method_category/auth.rb
lastfm-1.27.2 lib/lastfm/method_category/auth.rb
lastfm-1.27.1 lib/lastfm/method_category/auth.rb
lastfm-1.27.0 lib/lastfm/method_category/auth.rb
lastfm-1.26.0 lib/lastfm/method_category/auth.rb
lastfm-1.25.0 lib/lastfm/method_category/auth.rb
lastfm-1.24.0 lib/lastfm/method_category/auth.rb
lastfm-1.23.0 lib/lastfm/method_category/auth.rb
lastfm-1.22.0 lib/lastfm/method_category/auth.rb
lastfm-1.21.0 lib/lastfm/method_category/auth.rb
lastfm-1.20.1 lib/lastfm/method_category/auth.rb
lastfm-1.19.1 lib/lastfm/method_category/auth.rb
lastfm-1.19.0 lib/lastfm/method_category/auth.rb
lastfm-1.18.0 lib/lastfm/method_category/auth.rb