struct
TandaCLI::Models::ShiftSummary
- TandaCLI::Models::ShiftSummary
- Struct
- Value
- Object
Included Modules
- Enumerable(TandaCLI::Models::ShiftSummary::LeaveShift | TandaCLI::Models::ShiftSummary::WorkedShift)
Defined in:
tanda_cli/models/shift_summary.crtanda_cli/models/shift_summary/classified_shift.cr
tanda_cli/models/shift_summary/leave_shift.cr
tanda_cli/models/shift_summary/worked_shift.cr
Constructors
Instance Method Summary
- #any_ongoing? : Bool
-
#each(& : ClassifiedShift -> ) : Nil
Must yield this collection's elements to the block.
-
#empty? : Bool
Returns
trueifselfdoes not contain any element. - #leave_shifts : Array(LeaveShift)
- #leave_time : Time::Span
- #representer : Representers::ShiftSummary
- #time_left : Time::Span | Nil
- #worked_shifts : Array(WorkedShift)
- #worked_time : Time::Span
Constructor Detail
def self.new(shifts : Array(Types::Shift), treat_paid_breaks_as_unpaid : Bool = false, regular_hours_schedules : Array(RegularHoursSchedule) | Nil = nil)
#
Instance Method Detail
def each(& : ClassifiedShift -> ) : Nil
#
Description copied from module Enumerable(TandaCLI::Models::ShiftSummary::LeaveShift | TandaCLI::Models::ShiftSummary::WorkedShift)
Must yield this collection's elements to the block.
def empty? : Bool
#
Description copied from module Enumerable(TandaCLI::Models::ShiftSummary::LeaveShift | TandaCLI::Models::ShiftSummary::WorkedShift)
Returns true if self does not contain any element.
([] of Int32).empty? # => true
([1]).empty? # => false
[nil, false].empty? # => false
#present?returns the inverse.