Class: OmniExchange::Configuration
- Inherits:
-
Object
- Object
- OmniExchange::Configuration
- Defined in:
- lib/omni_exchange/configuration.rb
Constant Summary collapse
- DEFAULT_READ_TIMEOUT =
unless a read_timeout has been set in :provider_config, a provider will attempt to read an API response for the amount of seconds set as the DEFAULT_READ_TIMEOUT before timing out
5
- DEFAULT_CONNECTION_TIMEOUT =
unless a connect_timeout has been set in :provider_config, a provider will attempt to connect to an API for the amount of seconds set as the DEFAULT_CONNECTION_TIMEOUT before timing out
2
Instance Attribute Summary collapse
-
#provider_config ⇒ Object
Returns the value of attribute provider_config.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
an new Configuration instance is instantiated when OmniExchange.configure is called (see lib/omni_exchange.rb).
Constructor Details
#initialize ⇒ Configuration
an new Configuration instance is instantiated when OmniExchange.configure is called (see lib/omni_exchange.rb)
19 20 21 |
# File 'lib/omni_exchange/configuration.rb', line 19 def initialize @provider_config = nil end |
Instance Attribute Details
#provider_config ⇒ Object
Returns the value of attribute provider_config.
5 6 7 |
# File 'lib/omni_exchange/configuration.rb', line 5 def provider_config @provider_config end |