TandaCLI::Models::ShiftSummary
Inherits Enumerable < Struct < Value < Object
Constructors
Instance methods
any_ongoing?
Sourcebreaks_for(shift : WorkedShift) : ShiftBreaks
Sourceempty?
Returns true if self does not contain any element.
([] of Int32).empty? # => true
([1]).empty? # => false
[nil, false].empty? # => false
#present?returns the inverse.
An overnight shift is still in progress after midnight, so the date alone can't tell us
leave_shifts
Sourceleave_time
Sourcerepresenter
Sourceshift_representer_for(shift : WorkedShift) : Representers::Shift
Sourcetime_left
Sourceworked_shifts
Sourceworked_time
Source