Class: FactoryBotProfile::ChildStat

Inherits:
Stat
  • Object
show all
Defined in:
lib/factory_bot_profile/stat.rb

Instance Attribute Summary

Attributes inherited from Stat

#count, #name, #total_time

Instance Method Summary collapse

Methods inherited from Stat

#average_time, #initialize, #merge!

Constructor Details

This class inherits a constructor from FactoryBotProfile::Stat

Instance Method Details

#increment(time) ⇒ Object



24
25
26
27
# File 'lib/factory_bot_profile/stat.rb', line 24

def increment(time)
  @count += 1
  @total_time += time
end