Class: Run

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/rspectacles/app/models/run.rb

Instance Method Summary collapse

Instance Method Details

#runtimeObject



8
9
10
# File 'lib/rspectacles/app/models/run.rb', line 8

def runtime
  @runtime ||= examples.sum(:duration)
end

#total_countObject



4
5
6
# File 'lib/rspectacles/app/models/run.rb', line 4

def total_count
  @total_count ||= examples.size
end