Class: DHLAPI::BaseClient
- Inherits:
-
Object
- Object
- DHLAPI::BaseClient
- Defined in:
- lib/dhl_api/clients/base_client.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#http_client ⇒ Object
writeonly
Sets the attribute http_client.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
Instance Attribute Details
#http_client=(value) ⇒ Object (writeonly)
Sets the attribute http_client
5 6 7 |
# File 'lib/dhl_api/clients/base_client.rb', line 5 def http_client=(value) @http_client = value end |
#response ⇒ Object
Returns the value of attribute response.
6 7 8 |
# File 'lib/dhl_api/clients/base_client.rb', line 6 def response @response end |
Instance Method Details
#connection ⇒ Object
8 9 10 |
# File 'lib/dhl_api/clients/base_client.rb', line 8 def connection @connection ||= HTTP.headers(content_type: 'application/json', dhl_api_key: DHLAPI.config.api_key) end |