class TandaCLI::State

Defined in:

tanda_cli/state.cr
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

Instance Method Summary

Constructor Detail

def self.init(file : Storage::AbstractFile, display : Display) : State #

[View source]
def self.new(file : Storage::AbstractFile, serialisable : Serialisable = Serialisable.new) #

[View source]

Instance Method Detail

def access_token(*args, **options) #

[View source]
def access_token(*args, **options, &) #

[View source]
def api_url : String #

[View source]
def clear! : Nil #

[View source]
def current(*args, **options) #

[View source]
def current(*args, **options, &) #

[View source]
def current_environment(*args, **options) #

[View source]
def current_environment(*args, **options, &) #

[View source]
def current_organisation?(*args, **options) #

[View source]
def current_organisation?(*args, **options, &) #

[View source]
def organisations(*args, **options) #

[View source]
def organisations(*args, **options, &) #

[View source]
def organisations=(arg) #

[View source]
def overwrite_access_token!(email : String, access_token : API::Types::AccessToken) : Nil #

[View source]
def redacted(*args, **options) #

[View source]
def redacted(*args, **options, &) #

[View source]
def save! : Nil #

[View source]
def use_custom!(*args, **options) #

[View source]
def use_custom!(*args, **options, &) #

[View source]
def use_production!(*args, **options) #

[View source]
def use_production!(*args, **options, &) #

[View source]
def use_staging!(*args, **options) #

[View source]
def use_staging!(*args, **options, &) #

[View source]