Class: Hypernova::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/hypernova/configuration.rb

Constant Summary collapse

VALID_SCHEMES =
[:http, :https].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#hostObject

Returns the value of attribute host.



6
7
8
# File 'lib/hypernova/configuration.rb', line 6

def host
  @host
end

#http_adapterObject

Returns the value of attribute http_adapter.



6
7
8
# File 'lib/hypernova/configuration.rb', line 6

def http_adapter
  @http_adapter
end

#http_clientObject

Returns the value of attribute http_client.



6
7
8
# File 'lib/hypernova/configuration.rb', line 6

def http_client
  @http_client
end

#open_timeoutObject

Returns the value of attribute open_timeout.



6
7
8
# File 'lib/hypernova/configuration.rb', line 6

def open_timeout
  @open_timeout
end

#portObject

Returns the value of attribute port.



6
7
8
# File 'lib/hypernova/configuration.rb', line 6

def port
  @port
end

#schemeObject

Returns the value of attribute scheme.



6
7
8
# File 'lib/hypernova/configuration.rb', line 6

def scheme
  @scheme
end

#timeoutObject

Returns the value of attribute timeout.



6
7
8
# File 'lib/hypernova/configuration.rb', line 6

def timeout
  @timeout
end