Sha256: 66f1d00ebbdb014e484738f02e4b98c3a5fe6127ae55e9339270cdcc95989164

Contents?: true

Size: 294 Bytes

Versions: 8

Compression:

Stored size: 294 Bytes

Contents

module Lolp
  class Client
    module Authentication
      def authenticate(username = nil, password = nil)
        @token = post('v1/authenticate',
          username: username || @username,
          password: password || @password)
      end
      alias login authenticate
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lolp-0.8.2 lib/lolp/client/authentication.rb
lolp-0.8.1 lib/lolp/client/authentication.rb
lolp-0.8.0 lib/lolp/client/authentication.rb
lolp-0.7.0 lib/lolp/client/authentication.rb
lolp-0.6.0 lib/lolp/client/authentication.rb
lolp-0.5.0 lib/lolp/client/authentication.rb
lolp-0.4.0 lib/lolp/client/authentication.rb
lolp-0.3.0 lib/lolp/client/authentication.rb