Class: Drnbench::RequestResponse::Runner
- Inherits:
-
Object
- Object
- Drnbench::RequestResponse::Runner
- Defined in:
- lib/drnbench/request-response/runner.rb
Instance Attribute Summary collapse
-
#n_clients ⇒ Object
readonly
Returns the value of attribute n_clients.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(n_clients, config) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
#initialize(n_clients, config) ⇒ Runner
Returns a new instance of Runner.
25 26 27 28 29 |
# File 'lib/drnbench/request-response/runner.rb', line 25 def initialize(n_clients, config) @n_clients = n_clients @config = config populate_requests end |
Instance Attribute Details
#n_clients ⇒ Object (readonly)
Returns the value of attribute n_clients.
23 24 25 |
# File 'lib/drnbench/request-response/runner.rb', line 23 def n_clients @n_clients end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
23 24 25 |
# File 'lib/drnbench/request-response/runner.rb', line 23 def result @result end |
Instance Method Details
#run ⇒ Object
31 32 33 34 |
# File 'lib/drnbench/request-response/runner.rb', line 31 def run process_requests @result end |