class
TandaCLI::Configuration::Serialisable
- TandaCLI::Configuration::Serialisable
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
tanda_cli/configuration/serialisable.crtanda_cli/configuration/serialisable/access_token.cr
tanda_cli/configuration/serialisable/environment.cr
tanda_cli/configuration/serialisable/organisation.cr
tanda_cli/configuration/serialisable/organisation/regular_hours_schedule.cr
Constant Summary
-
PRODUCTION =
Configuration::PRODUCTION
Constructors
- .new(pull : JSON::PullParser)
- .new(clockin_photo_path : String | Nil = nil, production : Environment = Environment.new, staging : Environment = Environment.new, mode : String = PRODUCTION, start_of_week : Time::DayOfWeek = Time::DayOfWeek::Monday, treat_paid_breaks_as_unpaid : Bool | Nil = false)
Instance Method Summary
- #access_token(*args, **options)
- #access_token(*args, **options, &)
- #clockin_photo_path : String | Nil
- #clockin_photo_path=(clockin_photo_path : String | Nil)
- #current_environment : Environment
- #mode : String
- #mode=(mode : String)
- #organisations(*args, **options)
- #organisations(*args, **options, &)
- #organisations=(arg)
- #pretty_start_of_week : String
- #production : Environment
- #production=(production : Environment)
- #reset_environment!
- #site_prefix(*args, **options)
- #site_prefix(*args, **options, &)
- #site_prefix=(arg)
- #staging : Environment
- #staging=(staging : Environment)
- #staging? : Bool
- #start_of_week : Time::DayOfWeek
- #start_of_week=(value : String) : Time::DayOfWeek | Error::InvalidStartOfWeek
- #treat_paid_breaks_as_unpaid=(treat_paid_breaks_as_unpaid : Bool | Nil)
- #treat_paid_breaks_as_unpaid? : Bool | Nil
Constructor Detail
def self.new(clockin_photo_path : String | Nil = nil, production : Environment = Environment.new, staging : Environment = Environment.new, mode : String = PRODUCTION, start_of_week : Time::DayOfWeek = Time::DayOfWeek::Monday, treat_paid_breaks_as_unpaid : Bool | Nil = false)
#