Class: TimeLog
- Inherits:
-
MLS::Model
- Object
- ActiveRecord::Base
- MLS::Model
- TimeLog
- Defined in:
- lib/mls/models/time_log.rb
Instance Method Summary collapse
Instance Method Details
#duration ⇒ Object
9 10 11 12 |
# File 'lib/mls/models/time_log.rb', line 9 def duration return nil if !(started_at && stopped_at) stopped_at - started_at end |