Class: Run
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Run
- Defined in:
- lib/rspectacles/app/models/run.rb
Instance Method Summary collapse
Instance Method Details
#runtime ⇒ Object
8 9 10 |
# File 'lib/rspectacles/app/models/run.rb', line 8 def runtime @runtime ||= examples.sum(:duration) end |
#total_count ⇒ Object
4 5 6 |
# File 'lib/rspectacles/app/models/run.rb', line 4 def total_count @total_count ||= examples.size end |