class TandaCLI::State::Serialisable

Included Modules

Defined in:

tanda_cli/state/serialisable.cr
tanda_cli/state/serialisable/access_token.cr
tanda_cli/state/serialisable/environments.cr
tanda_cli/state/serialisable/environments/custom.cr
tanda_cli/state/serialisable/environments/production.cr
tanda_cli/state/serialisable/environments/staging.cr
tanda_cli/state/serialisable/organisation.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(production : Environments::Production = Environments::Production.new, staging : Environments::Staging = Environments::Staging.new, custom : Environments::Custom | Nil = nil, current_environment : Environment = Environment::Production) #

[View source]

Class Method Detail

def self.parse?(contents : String) : Serialisable | Nil #

[View source]

Instance Method Detail

def clear_current! : Nil #

[View source]
def current : Environments::Any #

[View source]
def current_environment : Environment #

[View source]
def redacted : Serialisable #

[View source]
def use_custom!(url : URI) : Nil #

[View source]
def use_production! : Nil #

[View source]
def use_staging! : Nil #

[View source]