Class: Pandemic::ServerSide::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/pandemic/server_side/config.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.bind_toObject

Returns the value of attribute bind_to.



5
6
7
# File 'lib/pandemic/server_side/config.rb', line 5

def bind_to
  @bind_to
end

.fork_for_processorObject

Returns the value of attribute fork_for_processor.



5
6
7
# File 'lib/pandemic/server_side/config.rb', line 5

def fork_for_processor
  @fork_for_processor
end

.pid_fileObject

Returns the value of attribute pid_file.



5
6
7
# File 'lib/pandemic/server_side/config.rb', line 5

def pid_file
  @pid_file
end

.response_timeoutObject

Returns the value of attribute response_timeout.



5
6
7
# File 'lib/pandemic/server_side/config.rb', line 5

def response_timeout
  @response_timeout
end

.serversObject

Returns the value of attribute servers.



5
6
7
# File 'lib/pandemic/server_side/config.rb', line 5

def servers
  @servers
end

Class Method Details

.get(*args) ⇒ Object



11
12
13
# File 'lib/pandemic/server_side/config.rb', line 11

def get(*args)
  args.size == 1 ?  @options[args.first] : @options.values_at(*args) if @options
end

.loadObject



6
7
8
9
# File 'lib/pandemic/server_side/config.rb', line 6

def load
  parse_args!
  raise "Interface to bind to is nil." unless @bind_to
end