class
TandaCLI::Configuration::Serialisable
- TandaCLI::Configuration::Serialisable
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
tanda_cli/configuration/serialisable.crConstructors
- .new(pull : JSON::PullParser)
- .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)
Class Method Summary
Instance Method Summary
- #clear_regular_hours_schedules!(organisation_id : Int32) : Nil
- #clockin_photo_path : String | Nil
- #clockin_photo_path=(clockin_photo_path : String | Nil)
- #pretty_start_of_week : String
- #regular_hours : Models::RegularHoursByOrganisation
- #regular_hours=(regular_hours : Models::RegularHoursByOrganisation)
- #regular_hours_schedules(organisation_id : Int32) : Array(Models::RegularHoursSchedule)
- #replace_regular_hours_schedules!(organisation_id : Int32, schedules : Array(Models::RegularHoursSchedule)) : Nil
- #start_of_week : Time::DayOfWeek
- #start_of_week=(start_of_week : Time::DayOfWeek)
- #treat_paid_breaks_as_unpaid=(treat_paid_breaks_as_unpaid : Bool)
- #treat_paid_breaks_as_unpaid? : Bool
Constructor Detail
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)
#
Class Method Detail
Instance Method Detail
def regular_hours_schedules(organisation_id : Int32) : Array(Models::RegularHoursSchedule)
#
def replace_regular_hours_schedules!(organisation_id : Int32, schedules : Array(Models::RegularHoursSchedule)) : Nil
#