class TandaCLI::Configuration::Serialisable
- TandaCLI::Configuration::Serialisable
- Reference
- Object
Included Modules
- JSON::Serializable
- TandaCLI::Configuration::Macros
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
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 : AccessToken
- #access_token=(value : AccessToken)
- #clockin_photo_path : String | Nil
- #clockin_photo_path=(clockin_photo_path : String | Nil)
- #current_environment : Environment
- #mode : String
- #mode=(mode : String)
-
#organisations : Array(Organisation)
properties that are delegated based on the current environment
-
#organisations=(value : Array(Organisation))
properties that are delegated based on the current environment
- #pretty_start_of_week : String
- #production : Environment
- #production=(production : Environment)
- #reset_environment!
- #site_prefix : String
- #site_prefix=(value : String)
- #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
Macros inherited from module TandaCLI::Configuration::Macros
environment_property(name)
environment_property
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)
#
Instance Method Detail
def organisations : Array(Organisation)
#
properties that are delegated based on the current environment
def organisations=(value : Array(Organisation))
#
properties that are delegated based on the current environment