class TandaCLI::Configuration::Environment

Included Modules

Defined in:

tanda_cli/configuration/types/environment.cr

Constant Summary

DEFAULT_SITE_PREFIX = "eu"

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
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) #

[View source]

Instance Method Detail

def access_token : AccessToken #

[View source]
def access_token=(access_token : AccessToken) #

[View source]
def current_organisation! : Organisation | NoReturn #

[View source]
def current_organisation? : Organisation | Nil #

[View source]
def organisations : Array(Organisation) #

[View source]
def organisations=(organisations : Array(Organisation)) #

[View source]
def site_prefix : String #

[View source]
def site_prefix=(site_prefix : String) #

[View source]
def time_zone : String | Nil #

[View source]
def time_zone=(time_zone : String | Nil) #

[View source]