class

Dorsum::Config

Inherits Reference < Object

Constants

ATTRIBUTES = ["client_id", "client_secret", "username", "password"] of ::String
FILENAME = PATH.join("config.yml")
PATH = Path["~/.config/dorsum"].expand(home: true)

Constructors

new(data : YAML::Any)
Source
new(data : Hash(String, YAML::Any | String))
Source

Class methods

load(path = FILENAME)
Source

Instance methods

client_id
Source
client_id=(value : String)
Source
client_id=(value : YAML::Any)
Source
client_id?
Source
client_secret
Source
client_secret=(value : String)
Source
client_secret=(value : YAML::Any)
Source
client_secret?
Source
data
Source
data=(data : Hash(String, YAML::Any))
Source
password
Source
password=(value : String)
Source
password=(value : YAML::Any)
Source
password?
Source
save(path = FILENAME)
Source
username
Source
username=(value : String)
Source
username=(value : YAML::Any)
Source
username?
Source