StrawHat.Map v0.3.1 StrawHat.Map.Schema.County View Source

Represents a County Ecto Schema with functionality about the data validation for County.

Link to this section Summary

Types

Check t/0 type for more information about the keys

t()

Functions

Validate the attributes and return a Ecto.Changeset for the current County

Link to this section Types

Link to this type county_attrs() View Source
county_attrs() :: %{name: String.t(), state_id: String.t()}

Check t/0 type for more information about the keys.

Link to this type t() View Source
t() :: %StrawHat.Map.Schema.County{
  __meta__: term(),
  id: term(),
  name: String.t(),
  state: StrawHat.Map.Schema.State.t() | Ecto.Association.NotLoaded.t(),
  state_id: String.t()
}

Link to this section Functions

Link to this function changeset(city, county_attrs) View Source
changeset(t(), county_attrs()) :: Ecto.Changeset.t()

Validate the attributes and return a Ecto.Changeset for the current County.