Class: BridgeInteractive::Configuration
- Inherits:
-
Object
- Object
- BridgeInteractive::Configuration
- Defined in:
- lib/bridge_interactive/configuration.rb
Instance Attribute Summary collapse
-
#api_type ⇒ Object
Returns the value of attribute api_type.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#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.
5 6 7 8 9 |
# File 'lib/bridge_interactive/configuration.rb', line 5 def initialize @timeout = 30 # Default timeout @logger = nil # Default logger @api_type = :bridge # Default API type (:bridge or :reso) end |
Instance Attribute Details
#api_type ⇒ Object
Returns the value of attribute api_type.
3 4 5 |
# File 'lib/bridge_interactive/configuration.rb', line 3 def api_type @api_type end |
#logger ⇒ Object
Returns the value of attribute logger.
3 4 5 |
# File 'lib/bridge_interactive/configuration.rb', line 3 def logger @logger end |
#timeout ⇒ Object
Returns the value of attribute timeout.
3 4 5 |
# File 'lib/bridge_interactive/configuration.rb', line 3 def timeout @timeout end |