Class: Mashape::BasicAuthentication
- Inherits:
-
HeaderAuthentication
- Object
- Authentication
- HeaderAuthentication
- Mashape::BasicAuthentication
- Defined in:
- lib/authentication/basic_authentication.rb
Instance Method Summary collapse
-
#initialize(username, password) ⇒ BasicAuthentication
constructor
A new instance of BasicAuthentication.
Methods inherited from Authentication
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 |