Class: Pandemic::ServerSide::Config
- Inherits:
-
Object
- Object
- Pandemic::ServerSide::Config
- Defined in:
- lib/pandemic/server_side/config.rb
Class Attribute Summary collapse
-
.bind_to ⇒ Object
Returns the value of attribute bind_to.
-
.fork_for_processor ⇒ Object
Returns the value of attribute fork_for_processor.
-
.pid_file ⇒ Object
Returns the value of attribute pid_file.
-
.response_timeout ⇒ Object
Returns the value of attribute response_timeout.
-
.servers ⇒ Object
Returns the value of attribute servers.
Class Method Summary collapse
Class Attribute Details
.bind_to ⇒ Object
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_processor ⇒ Object
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_file ⇒ Object
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_timeout ⇒ Object
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 |
.servers ⇒ Object
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 |
.load ⇒ Object
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 |