class TandaCLI::Configuration::Serialisable

Included Modules

Defined in:

tanda_cli/configuration/serialisable.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(clockin_photo_path : String | Nil = nil, start_of_week : Time::DayOfWeek = Time::DayOfWeek::Monday, treat_paid_breaks_as_unpaid : Bool = false, regular_hours : Models::RegularHoursByOrganisation = Models::RegularHoursByOrganisation.new) #

[View source]

Class Method Detail

def self.parse?(contents : String) : Serialisable | Nil #

[View source]

Instance Method Detail

def clear_regular_hours_schedules!(organisation_id : Int32) : Nil #

[View source]
def clockin_photo_path : String | Nil #

[View source]
def clockin_photo_path=(clockin_photo_path : String | Nil) #

[View source]
def pretty_start_of_week : String #

[View source]

[View source]
def regular_hours=(regular_hours : Models::RegularHoursByOrganisation) #

[View source]
def regular_hours_schedules(organisation_id : Int32) : Array(Models::RegularHoursSchedule) #

[View source]
def replace_regular_hours_schedules!(organisation_id : Int32, schedules : Array(Models::RegularHoursSchedule)) : Nil #

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

[View source]
def start_of_week=(start_of_week : Time::DayOfWeek) #

[View source]
def treat_paid_breaks_as_unpaid=(treat_paid_breaks_as_unpaid : Bool) #

[View source]
def treat_paid_breaks_as_unpaid? : Bool #

[View source]