Class: Drnbench::RequestResponse::RequestPattern::Abstract
- Inherits:
-
Object
- Object
- Drnbench::RequestResponse::RequestPattern::Abstract
- Defined in:
- lib/drnbench/request-response/request-pattern.rb
Instance Method Summary collapse
- #default_group_frequency ⇒ Object
- #groups ⇒ Object
-
#initialize(source, config) ⇒ Abstract
constructor
A new instance of Abstract.
- #requests ⇒ Object
Constructor Details
#initialize(source, config) ⇒ Abstract
Returns a new instance of Abstract.
20 21 22 23 |
# File 'lib/drnbench/request-response/request-pattern.rb', line 20 def initialize(source, config) @source = source @config = config end |
Instance Method Details
#default_group_frequency ⇒ Object
29 30 31 |
# File 'lib/drnbench/request-response/request-pattern.rb', line 29 def default_group_frequency 1.0 / groups.size end |
#groups ⇒ Object
25 26 27 |
# File 'lib/drnbench/request-response/request-pattern.rb', line 25 def groups @groups ||= prepare_groups end |
#requests ⇒ Object
33 34 35 |
# File 'lib/drnbench/request-response/request-pattern.rb', line 33 def requests @requests ||= populate_requests end |