# `Bonny.Naming`
[🔗](https://github.com/coryodaniel/bonny/blob/v1.5.0/lib/bonny/naming.ex#L1)

Naming functions

# `module_to_kind`

```elixir
@spec module_to_kind(atom()) :: String.t()
```

Converts an elixir module name to a string for use as the CRD's `kind`.

## Examples
    iex> Bonny.Naming.module_to_kind(Pod)
    "Pod"

    iex> Bonny.Naming.module_to_kind(Controllers.V1.Pod)
    "Pod"

# `module_version`

```elixir
@spec module_version(atom()) :: String.t()
```

Extract the CRD API version from the module name. Defaults to `"v1"`

## Examples
    iex> Bonny.Naming.module_version(Pod)
    "v1"

    iex> Bonny.Naming.module_version(Controllers.V1.Pod)
    "v1"

    iex> Bonny.Naming.module_version(Controllers.V1Alpha1.Pod)
    "v1alpha1"

---

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