struct TandaCLI::Models::WorkedShift

Included Modules

Defined in:

tanda_cli/models/worked_shift.cr

Constructors

Class Method Summary

Instance Method Summary

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

def self.new(api_shift : API::Types::Shift) #

[View source]

Class Method Detail

def self.from?(api_shift : API::Types::Shift) : WorkedShift | Nil #

[View source]

Instance Method Detail

def breaks : Array(ShiftBreak) #

[View source]
def date(*args, **options) #

[View source]
def date(*args, **options, &) #

[View source]
def day_of_week : Time::DayOfWeek #

[View source]
def finish_time(*args, **options) #

[View source]
def finish_time(*args, **options, &) #

[View source]
def id(*args, **options) #

[View source]
def id(*args, **options, &) #

[View source]
def last_event_time : Time | Nil #

[View source]
def notes(*args, **options) #

[View source]
def notes(*args, **options, &) #

[View source]
def ongoing? : Bool #

[View source]
def ongoing_break? : Bool #

[View source]
def ongoing_without_break? : Bool #

[View source]
def start_time(*args, **options) #

[View source]
def start_time(*args, **options, &) #

[View source]
def status(*args, **options) #

[View source]
def status(*args, **options, &) #

[View source]
def user_id(*args, **options) #

[View source]
def user_id(*args, **options, &) #

[View source]
def valid_breaks : Array(ShiftBreak) #

[View source]