Class: Mashape::BasicAuthentication

Inherits:
HeaderAuthentication show all
Defined in:
lib/authentication/basic_authentication.rb

Instance Method Summary collapse

Methods inherited from Authentication

#handleHeader, #handleParams

Constructor Details

#initialize(username, password) ⇒ BasicAuthentication

Returns a new instance of BasicAuthentication.



7
8
9
10
# File 'lib/authentication/basic_authentication.rb', line 7

def initialize(username, password)
  super()
  @header = @header.merge(Mashape::AuthenticationUtils.generateBasicAuthHeader(username, password))
end