struct DppmRestApi::Config

Included Modules

Defined in:

config.cr
config/helpers.cr

Constant Summary

DEFAULT_DATA_DIR = "./data/"

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.read(data_dir : String = DEFAULT_DATA_DIR) : self #

[View source]

Instance Method Detail

def file_path : Path #

[View source]
def file_path=(file_path : Path) #

[View source]
def find_and_authenticate!(body) : Config::User? #

[View source]
def group_view(user : User) : GroupView #

[View source]
def groups : Array(Group) #

[View source]
def groups=(groups : Array(Group)) #

[View source]
def sync_to_disk : Nil #

Saves the configuration to a file at filepath.


[View source]
def to_json(io : IO, *, indent : String | Int32? = nil) #

[View source]
def users : Array(User) #

[View source]
def users=(users : Array(User)) #

[View source]