class Config

Overview

The Config class reads the config from a given YAML file and creates appropriate getters for the expected fields.

Defined in:

lib/config.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

Creates a new Config instance.


[View source]

Instance Method Detail

def getBoardDescription #

Gets the board description from the config.


[View source]
def getBoardName #

Gets the board name from the config.


[View source]
def getDbPath #

Gets the database path from the config.


[View source]
def getMaxReplies #

Gets the maximum amount of replies from the config.


[View source]
def getMaxThreads #

Get the maximum amount of threads from the config.


[View source]
def getSecretKey #

Gets the secret key from the config.


[View source]
def getThreadsPerPage #

Gets the maximum amount of threads per page from the config.


[View source]
def reload #

Reloads the YAML config.


[View source]