Class: Phearb::Configuration

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

Constant Summary collapse

DEFAULT_HOST =
'localhost'
DEFAULT_PORT =
8100
DEFAULT_TIMEOUT =
60

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



11
12
13
14
15
# File 'lib/phearb/configuration.rb', line 11

def initialize
  @host = DEFAULT_HOST
  @port = DEFAULT_PORT
  @timeout = DEFAULT_TIMEOUT
end

Instance Attribute Details

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/phearb/configuration.rb', line 3

def host
  @host
end

#portObject

Returns the value of attribute port.



4
5
6
# File 'lib/phearb/configuration.rb', line 4

def port
  @port
end

#timeoutObject

Returns the value of attribute timeout.



5
6
7
# File 'lib/phearb/configuration.rb', line 5

def timeout
  @timeout
end