Class: Agris::Credentials::BasicAuth
- Inherits:
-
Object
- Object
- Agris::Credentials::BasicAuth
- Defined in:
- lib/agris/credentials/basic_auth.rb
Instance Method Summary collapse
- #apply(options) ⇒ Object
-
#initialize(username, password) ⇒ BasicAuth
constructor
A new instance of BasicAuth.
Constructor Details
#initialize(username, password) ⇒ BasicAuth
Returns a new instance of BasicAuth.
5 6 7 8 |
# File 'lib/agris/credentials/basic_auth.rb', line 5 def initialize(username, password) @username = username @password = password end |
Instance Method Details
#apply(options) ⇒ Object
10 11 12 |
# File 'lib/agris/credentials/basic_auth.rb', line 10 def apply() .merge(basic_auth: [@username, @password]) end |