# `Imison.Config`
[🔗](https://github.com/elpikel/imison/blob/v0.1.0/lib/imison/config.ex#L1)

The validated options of a running Imison instance.

`new/1` fills in defaults for options left out and raises `ArgumentError`
when an option is missing, unknown, duplicate or of the wrong type, so a
host app with a bad config fails to boot.

# `t`

```elixir
@type t() :: %Imison.Config{
  channels: [module()],
  dashboard_url: String.t() | nil,
  enabled: boolean(),
  filter: [String.t()],
  from: String.t() | nil,
  ignore: [module()],
  mailer: module() | nil,
  name: term(),
  password: String.t(),
  prefix: String.t(),
  pubsub: atom() | nil,
  release: String.t() | nil,
  repo: module(),
  retention_days: pos_integer(),
  username: String.t()
}
```

# `new`

```elixir
@spec new(keyword()) :: t()
```

Builds the config from the host's options, raising `ArgumentError` when they're invalid.

# `validate`

```elixir
@spec validate(keyword()) :: :ok | {:error, String.t()}
```

Checks the host's options without building the config.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
