Class: DilisensePepClient::Configuration
- Inherits:
-
Object
- Object
- DilisensePepClient::Configuration
- Defined in:
- lib/dilisense_pep_client/configuration.rb
Overview
Simple configuration management Stores basic settings needed for API communication
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 |
# File 'lib/dilisense_pep_client/configuration.rb', line 9 def initialize @base_url = "https://api.dilisense.com" @timeout = 30 @api_key = ENV["DILISENSE_API_KEY"] end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
7 8 9 |
# File 'lib/dilisense_pep_client/configuration.rb', line 7 def api_key @api_key end |
#base_url ⇒ Object
Returns the value of attribute base_url.
7 8 9 |
# File 'lib/dilisense_pep_client/configuration.rb', line 7 def base_url @base_url end |
#timeout ⇒ Object
Returns the value of attribute timeout.
7 8 9 |
# File 'lib/dilisense_pep_client/configuration.rb', line 7 def timeout @timeout end |