StrawHat.Map v1.0.0 StrawHat.Map.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
name: Name of the county.state:StrawHat.Map.State.t/0associated with the county.state_id:idofStrawHat.Map.State.t/0associated with the county
Functions
Validates the attributes and return a Ecto.Changeset for the current County
Link to this section Types
Check t/0 type for more information about the keys.
Link to this type
t()
View Source
t() :: %StrawHat.Map.County{
__meta__: term(),
id: term(),
name: String.t(),
state: StrawHat.Map.State.t() | Ecto.Association.NotLoaded.t(),
state_id: String.t()
}
name: Name of the county.state:StrawHat.Map.State.t/0associated with the county.state_id:idofStrawHat.Map.State.t/0associated with the county.
Link to this section Functions
Link to this function
changeset(city, county_attrs)
View Source
changeset(t(), county_attrs()) :: Ecto.Changeset.t()
Validates the attributes and return a Ecto.Changeset for the current County.