Class: Drnbench::RequestResponse::RequestPattern::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/drnbench/request-response/request-pattern.rb

Instance Method Summary collapse

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_frequencyObject



29
30
31
# File 'lib/drnbench/request-response/request-pattern.rb', line 29

def default_group_frequency
  1.0 / groups.size
end

#groupsObject



25
26
27
# File 'lib/drnbench/request-response/request-pattern.rb', line 25

def groups
  @groups ||= prepare_groups
end

#requestsObject



33
34
35
# File 'lib/drnbench/request-response/request-pattern.rb', line 33

def requests
  @requests ||= populate_requests
end