class TandaCLI::Configuration::Organisation

Included Modules

Defined in:

tanda_cli/configuration/types/organisation.cr

Constant Summary

TIME_STRING_FORMAT = "%H:%M"

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.from(organisation : Types::Me::Organisation) : self #

[View source]
def self.new(id : Int32, name : String, user_id : Int32, current : Bool = false, regular_hours_schedules : Array(RegularHoursSchedule) | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Class Method Detail

def self.from(me : Types::Me) : Array(self) #

[View source]

Instance Method Detail

def current=(current : Bool) #

[View source]
def current? : Bool #

[View source]
def id : Int32 #

[View source]
def name : String #

[View source]
def regular_hours_schedules : Array(RegularHoursSchedule) | Nil #

[View source]
def set_regular_hours!(schedules_with_day_of_week : Array(NamedTuple(day_of_week: Time::DayOfWeek, schedule: Types::Schedule))) #

[View source]
def user_id : Int32 #

[View source]