Class: Agris::Credentials::BasicAuth

Inherits:
Object
  • Object
show all
Defined in:
lib/agris/credentials/basic_auth.rb

Instance Method Summary collapse

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(options)
  options.merge(basic_auth: [@username, @password])
end