View Source CompaniesHouse.Config (CompaniesHouse v0.1.0)

Methods to parse and modify configurations.

Summary

Functions

Gets the key value from the environment config.

Puts a new key value to the configuration.

Raise a ConfigError exception.

Types

t()

@type t() :: Keyword.t()

Functions

get(key, default \\ nil)

@spec get(atom(), any()) :: any()

Gets the key value from the environment config.

put(config, key, value)

@spec put(t(), atom(), any()) :: t()

Puts a new key value to the configuration.

raise_error(message)

@spec raise_error(binary()) :: no_return()

Raise a ConfigError exception.