class TandaCLI::Configuration::Environment
- TandaCLI::Configuration::Environment
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
tanda_cli/configuration/types/environment.crConstant Summary
-
DEFAULT_SITE_PREFIX =
"eu"
Constructors
- .new(pull : JSON::PullParser)
- .new(site_prefix : String = DEFAULT_SITE_PREFIX, access_token : AccessToken = AccessToken.new, organisations : Array(Organisation) = Array(Organisation).new, time_zone : String | Nil = nil)
Instance Method Summary
- #access_token : AccessToken
- #access_token=(access_token : AccessToken)
- #current_organisation! : Organisation | NoReturn
- #current_organisation? : Organisation | Nil
- #organisations : Array(Organisation)
- #organisations=(organisations : Array(Organisation))
- #site_prefix : String
- #site_prefix=(site_prefix : String)
- #time_zone : String | Nil
- #time_zone=(time_zone : String | Nil)
Constructor Detail
def self.new(site_prefix : String = DEFAULT_SITE_PREFIX, access_token : AccessToken = AccessToken.new, organisations : Array(Organisation) = Array(Organisation).new, time_zone : String | Nil = nil)
#