class TestProf::FactoryDoctor::Configuration
Attributes
event[RW]
threshold[RW]
Public Class Methods
new()
click to toggle source
# File lib/test_prof/factory_doctor.rb, line 44 def initialize # event to track for DB interactions @event = ENV.fetch("FDOC_EVENT", "sql.active_record") # consider result good if time wasted less then threshold @threshold = ENV.fetch("FDOC_THRESHOLD", "0.01").to_f end