PayWay v0.1.0 PayWay.Options

Options for configuring and connecting to PayWay.

Link to this section Summary

Functions

Assigns default options

Retrieves the options from the agent

Stores the options in an agent

Link to this section Functions

Link to this function assign_defaults(opts)
assign_defaults(keyword) :: keyword

Assigns default options.

Examples

iex> Options.assign_defaults([]) |> Keyword.get(:api_endpoint)
"https://api.payway.com.au/rest/v1"
Link to this function retrieve(key)
retrieve(key :: atom) :: term

Retrieves the options from the agent.

Link to this function store(opts)
store(keyword) :: {:ok, pid}

Stores the options in an agent.