Class: Honeydew::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



13
14
15
16
17
18
# File 'lib/honeydew/honeydew.rb', line 13

def initialize
  @port = 7120
  @debug = true
  @timeout = 5.seconds
  @server_timeout = 30.seconds
end

Instance Attribute Details

#debugObject

Returns the value of attribute debug.



8
9
10
# File 'lib/honeydew/honeydew.rb', line 8

def debug
  @debug
end

#portObject

Returns the value of attribute port.



8
9
10
# File 'lib/honeydew/honeydew.rb', line 8

def port
  @port
end

#server_timeoutObject

Returns the value of attribute server_timeout.



8
9
10
# File 'lib/honeydew/honeydew.rb', line 8

def server_timeout
  @server_timeout
end

#timeoutObject

Returns the value of attribute timeout.



8
9
10
# File 'lib/honeydew/honeydew.rb', line 8

def timeout
  @timeout
end

Instance Method Details

#obtain_new_portObject



20
21
22
# File 'lib/honeydew/honeydew.rb', line 20

def obtain_new_port
  @port.tap { @port += 1 }
end