View Source Islands.Client.IslandType (Islands Client Island Type v0.1.17)
Converts island type codes into island types in the Game of Islands.
Link to this section Summary
Functions
Converts island_type_code
into an island type.
Link to this section Types
@type code() :: <<_::8>>
Island type code e.g. "a" or "d"
@type t() :: Islands.Island.type()
Island type
Link to this section Functions
Converts island_type_code
into an island type.
examples
Examples
iex> alias Islands.Client.IslandType
iex> IslandType.new("a")
:atoll