class Teletube::Config

Defined in:

teletube/config.cr

Constant Summary

ENDPOINT = "https://tube.switch.ch"
PATH = Path["~/.teletube.yml"].expand(home: true)

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.load(path = PATH) #

[View source]

Instance Method Detail

def attributes=(attributes : YAML::Any) #

[View source]
def attributes=(attributes : Hash(String, String)) #

[View source]
def endpoint #

[View source]
def save(path = PATH) #

[View source]
def token : String | Nil #

[View source]