Class: TimeLog

Inherits:
MLS::Model show all
Defined in:
lib/mls/models/time_log.rb

Instance Method Summary collapse

Instance Method Details

#durationObject



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