Class: Cyclid::Client::Api::Basic
- Defined in:
- lib/cyclid/client/api/basic.rb
Overview
HTTP Basic auth HTTP methods
Instance Method Summary collapse
-
#authenticate_request(request, _uri) ⇒ Object
Add the username & password to the request.
Methods inherited from Base
#api_delete, #api_get, #api_json_post, #api_json_put, #api_raw_post, #api_request, #api_yaml_post, #initialize, #parse_response
Constructor Details
This class inherits a constructor from Cyclid::Client::Api::Base
Instance Method Details
#authenticate_request(request, _uri) ⇒ Object
Add the username & password to the request
25 26 27 28 |
# File 'lib/cyclid/client/api/basic.rb', line 25 def authenticate_request(request, _uri) request.basic_auth(@config.username, @config.password) return request end |