struct

TandaCLI::Models::ShiftBreaks

Inherits Struct < Value < Object

A shift's breaks measured against when the shift finished, or when we expect it to

Constants

MAX_SHIFT_LENGTH = 1.day

No shift runs longer than this, so without an expected finish it's our last resort for deciding a break can't still be running

Constructors

new(shift : WorkedShift, breaks : Array(ShiftBreak), expected_finish_time : Time | Nil = nil, expected_break_length : Time::Span | Nil = nil)
Source

Instance methods

any_never_finished?
Source
assumed_length
Source
measured
Source
total
Source