Class: Drnbench::Server::ProtocolAdapterConfiguration
- Inherits:
-
Object
- Object
- Drnbench::Server::ProtocolAdapterConfiguration
- Defined in:
- lib/drnbench/server/configuration.rb
Instance Attribute Summary collapse
-
#application_dir ⇒ Object
Returns the value of attribute application_dir.
-
#default_dataset ⇒ Object
Returns the value of attribute default_dataset.
-
#engine ⇒ Object
Returns the value of attribute engine.
-
#host ⇒ Object
Returns the value of attribute host.
-
#node ⇒ Object
Returns the value of attribute node.
-
#node_options ⇒ Object
Returns the value of attribute node_options.
-
#port ⇒ Object
Returns the value of attribute port.
-
#receive_port ⇒ Object
Returns the value of attribute receive_port.
Instance Method Summary collapse
-
#initialize ⇒ ProtocolAdapterConfiguration
constructor
A new instance of ProtocolAdapterConfiguration.
Constructor Details
#initialize ⇒ ProtocolAdapterConfiguration
Returns a new instance of ProtocolAdapterConfiguration.
47 48 49 50 51 52 53 54 55 56 |
# File 'lib/drnbench/server/configuration.rb', line 47 def initialize @application_dir = Pathname(Dir.pwd) @host = "localhost" @port = 80 @receive_port = 14224 @default_dataset = "Droonga" @node = "node" @node_options = [] @engine = nil end |
Instance Attribute Details
#application_dir ⇒ Object
Returns the value of attribute application_dir.
43 44 45 |
# File 'lib/drnbench/server/configuration.rb', line 43 def application_dir @application_dir end |
#default_dataset ⇒ Object
Returns the value of attribute default_dataset.
43 44 45 |
# File 'lib/drnbench/server/configuration.rb', line 43 def default_dataset @default_dataset end |
#engine ⇒ Object
Returns the value of attribute engine.
45 46 47 |
# File 'lib/drnbench/server/configuration.rb', line 45 def engine @engine end |
#host ⇒ Object
Returns the value of attribute host.
43 44 45 |
# File 'lib/drnbench/server/configuration.rb', line 43 def host @host end |
#node ⇒ Object
Returns the value of attribute node.
44 45 46 |
# File 'lib/drnbench/server/configuration.rb', line 44 def node @node end |
#node_options ⇒ Object
Returns the value of attribute node_options.
44 45 46 |
# File 'lib/drnbench/server/configuration.rb', line 44 def @node_options end |
#port ⇒ Object
Returns the value of attribute port.
43 44 45 |
# File 'lib/drnbench/server/configuration.rb', line 43 def port @port end |
#receive_port ⇒ Object
Returns the value of attribute receive_port.
43 44 45 |
# File 'lib/drnbench/server/configuration.rb', line 43 def receive_port @receive_port end |