class Ktistec::Settings

Overview

Model-like class for managing site settings.

Defined in:

framework/framework.cr

Constant Summary

PROPERTIES = {host: String, site: String, footer: String, translator_service: String, translator_url: String}

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def assign(options) #

[View source]
def errors : Hash(String, Array(String)) #

[View source]
def footer : String | Nil #

def footer=(footer : String | Nil) #

def host : String | Nil #

def host=(host : String | Nil) #

def save #

[View source]
def site : String | Nil #

def site=(site : String | Nil) #

def translator_service : String | Nil #

def translator_service=(translator_service : String | Nil) #

def translator_url : String | Nil #

def translator_url=(translator_url : String | Nil) #

def valid? #

[View source]