Method: Apdex::CalculateFromLog#call

Defined in:
lib/apdex/calculate_from_log.rb

#call(threshold, input) ⇒ Object



20
21
22
23
24
25
# File 'lib/apdex/calculate_from_log.rb', line 20

def call(threshold, input)
  values = value_from_input(input)
  output = categorize_values(values, threshold)
  output[:score] = calculate_apdex(output)
  output
end