batch_elixir v0.2.2 BatchElixir.Environment View Source

Wrapper module to access to the application environment value

Link to this section Summary

Functions

Ensure they the key exists. Return :ok if the key exists, otherwise it will return {:error,reason} for undefined key

Get the value from a key

Link to this section Functions

Link to this function

ensure(key) View Source
ensure(atom()) :: :ok | {:error, String.t()}

Ensure they the key exists. Return :ok if the key exists, otherwise it will return {:error,reason} for undefined key.

Get the value from a key.

Return nil if the key does not exist in the application environment. Otherwise return the value.