# `InboundLeadAging`
[🔗](https://github.com/jaizendra-netizen/inbound-lead-aging/blob/main/lib/inbound_lead_aging.ex#L1)

Age buckets for untouched inbound leads (see https://www.onegtmlab.dev/glossary/inbound-lead).

Rows are maps with "lead", "created_at" (RFC 3339) and an optional "first_touch_at". Only leads with
no first touch are aged, measured to `now`.

# `age`

Returns `%{counts: %{bucket => n}, oldest: [{lead, minutes}], touched: n}`.
`now` is a DateTime.

# `bucket`

Bucket label for an age in minutes.

# `buckets`

Bucket labels, freshest first.

# `parse_csv`

Parse a simple CSV (header row, no quoted commas) into maps.

# `render`

Render the result as plain text.

---

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