class
TandaCLI::Configuration::Serialisable::Organisation
- TandaCLI::Configuration::Serialisable::Organisation
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
tanda_cli/configuration/serialisable/organisation.crConstructors
- .from(organisation : API::Types::Me::Organisation) : self
- .new(id : Int32, name : String, user_id : Int32, current : Bool = false, _regular_hours_schedules : Array(Models::RegularHoursSchedule) | Nil = nil)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #clear_regular_hours_schedules!
- #current=(current : Bool)
- #current? : Bool
- #id : Int32
- #name : String
- #regular_hours_schedules : Array(Models::RegularHoursSchedule)
- #replace_regular_hours_schedules!(schedules : Array(Models::RegularHoursSchedule)) : Nil
- #user_id : Int32
Constructor Detail
def self.new(id : Int32, name : String, user_id : Int32, current : Bool = false, _regular_hours_schedules : Array(Models::RegularHoursSchedule) | Nil = nil)
#
Class Method Detail
Instance Method Detail
def replace_regular_hours_schedules!(schedules : Array(Models::RegularHoursSchedule)) : Nil
#