Packages

BeamLabCountries is a collection of all sorts of useful information for every country in the [ISO 3166](https://wikipedia.org/wiki/ISO_3166) standard. It includes country data, subdivisions (states/provinces), international organizations, language information, and country name translations.

Current section

Files

Jump to
beamlab_countries lib union.ex
Raw

lib/union.ex

defmodule BeamLabCountries.Union do
@moduledoc """
Union struct representing international organizations and country groupings.
"""
defstruct [
:code,
:name,
:type,
:founded,
:headquarters,
:website,
:wikipedia,
:members
]
@type t :: %__MODULE__{
code: String.t(),
name: String.t(),
type: atom() | nil,
founded: String.t() | nil,
headquarters: String.t() | nil,
website: String.t() | nil,
wikipedia: String.t() | nil,
members: [String.t()]
}
end