Class: Hypernova::Configuration
- Inherits:
-
Object
- Object
- Hypernova::Configuration
- Defined in:
- lib/hypernova/configuration.rb
Constant Summary collapse
- VALID_SCHEMES =
[:http, :https].freeze
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#http_adapter ⇒ Object
Returns the value of attribute http_adapter.
-
#http_client ⇒ Object
Returns the value of attribute http_client.
-
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
#port ⇒ Object
Returns the value of attribute port.
-
#scheme ⇒ Object
Returns the value of attribute scheme.
-
#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.
14 15 16 17 18 |
# File 'lib/hypernova/configuration.rb', line 14 def initialize @open_timeout = 0.1 @scheme = :http @timeout = 0.6 end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
6 7 8 |
# File 'lib/hypernova/configuration.rb', line 6 def host @host end |
#http_adapter ⇒ Object
Returns the value of attribute http_adapter.
6 7 8 |
# File 'lib/hypernova/configuration.rb', line 6 def http_adapter @http_adapter end |
#http_client ⇒ Object
Returns the value of attribute http_client.
6 7 8 |
# File 'lib/hypernova/configuration.rb', line 6 def http_client @http_client end |
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
6 7 8 |
# File 'lib/hypernova/configuration.rb', line 6 def open_timeout @open_timeout end |
#port ⇒ Object
Returns the value of attribute port.
6 7 8 |
# File 'lib/hypernova/configuration.rb', line 6 def port @port end |
#scheme ⇒ Object
Returns the value of attribute scheme.
6 7 8 |
# File 'lib/hypernova/configuration.rb', line 6 def scheme @scheme end |
#timeout ⇒ Object
Returns the value of attribute timeout.
6 7 8 |
# File 'lib/hypernova/configuration.rb', line 6 def timeout @timeout end |