class TandaCLI::Configuration::Organisation
- TandaCLI::Configuration::Organisation
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
tanda_cli/configuration/types/organisation.crConstant Summary
-
TIME_STRING_FORMAT =
"%H:%M"
Constructors
- .from(organisation : Types::Me::Organisation) : self
- .new(id : Int32, name : String, user_id : Int32, current : Bool = false, regular_hours_schedules : Array(RegularHoursSchedule) | Nil = nil)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #current=(current : Bool)
- #current? : Bool
- #id : Int32
- #name : String
- #regular_hours_schedules : Array(RegularHoursSchedule) | Nil
- #set_regular_hours!(schedules_with_day_of_week : Array(NamedTuple(day_of_week: Time::DayOfWeek, schedule: Types::Schedule)))
- #user_id : Int32
Constructor Detail
def self.new(id : Int32, name : String, user_id : Int32, current : Bool = false, regular_hours_schedules : Array(RegularHoursSchedule) | Nil = nil)
#
Class Method Detail
Instance Method Detail
def set_regular_hours!(schedules_with_day_of_week : Array(NamedTuple(day_of_week: Time::DayOfWeek, schedule: Types::Schedule)))
#