# `Islands.Client.IslandType`
[🔗](https://github.com/RaymondLoranger/islands_client_island_type/blob/main/lib/islands/client/island_type.ex#L4)

Converts island type codes into island types in the _Game of Islands_.

# `code`

```elixir
@type code() :: &lt;&lt;_::8&gt;&gt;
```

Island type code e.g. "a" or "d"

# `t`

```elixir
@type t() :: Islands.Island.type()
```

Island type

# `new`

```elixir
@spec new(code()) :: t() | {:error, atom()}
```

Converts `island_type_code` into an island type.

## Examples

    iex> alias Islands.Client.IslandType
    iex> IslandType.new("a")
    :atoll

---

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