class TandaCLI::Types::Shift
- TandaCLI::Types::Shift
- Reference
- Object
Included Modules
- JSON::Serializable
- TandaCLI::Utils::Mixins::PrettyTimes
- TandaCLI::Utils::Mixins::PrettyTimes::PrettyDate
- TandaCLI::Utils::Mixins::PrettyTimes::PrettyMaybeFinish
- TandaCLI::Utils::Mixins::PrettyTimes::PrettyMaybeStart
Defined in:
tanda_cli/types/shift.crConstructors
Class Method Summary
-
.from_array(response : HTTP::Client::Response, client : API::Client) : API::Result(Array(self))
Parse shifts and any associated leave requests
Instance Method Summary
- #breaks : Array(ShiftBreak)
- #date : Time
- #day_of_week : Time::DayOfWeek
- #finish_time : Time | Nil
- #id : Int32
- #leave_request : Types::LeaveRequest | Nil
- #leave_request_id : Int32 | Nil
- #nilable_notes : Array(Types::Note) | Nil
- #notes : Array(Types::Note)
- #ongoing? : Bool
- #ongoing_break? : Bool
- #ongoing_without_break? : Bool
- #set_leave_request!(leave_request : Types::LeaveRequest)
- #start_time : Time | Nil
- #status : Status
- #time_worked : Time::Span | Nil
- #user_id : Int32
- #valid_breaks : Array(ShiftBreak)
- #visible? : Bool
- #worked_so_far : Time::Span | Nil
Instance methods inherited from module TandaCLI::Utils::Mixins::PrettyTimes::PrettyDate
pretty_date : String
pretty_date
Instance methods inherited from module TandaCLI::Utils::Mixins::PrettyTimes::PrettyMaybeFinish
pretty_finish_time : String | Nil
pretty_finish_time
Instance methods inherited from module TandaCLI::Utils::Mixins::PrettyTimes::PrettyMaybeStart
pretty_start_time : String | Nil
pretty_start_time
Constructor Detail
Class Method Detail
def self.from_array(response : HTTP::Client::Response, client : API::Client) : API::Result(Array(self))
#
Parse shifts and any associated leave requests