StrawHat.Map v0.3.0 StrawHat.Map.Schema.Address View Source
Represents a Address Ecto Schema with functionality about the data validation for Address.
Link to this section Summary
Types
Check t/0
type for more information about the keys
line_one
: Line one of the address.line_two
: Line two of the address.postal_code
: Postal Code or Zipcode of the address.city
:StrawHat.Map.Schema.City.t/0
associated with the address.city_id
:id
ofStrawHat.Map.Schema.City.t/0
associated with the address.locations
: List ofStrawHat.Map.Schema.Location.t/0
associated with the address
Functions
Validate the attributes and return a Ecto.Changeset for the current Address
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.Schema.Address{ __meta__: term(), city: StrawHat.Map.Schema.City.t() | Ecto.Association.NotLoaded.t(), city_id: Integer.t(), id: term(), line_one: String.t(), line_two: String.t(), locations: [StrawHat.Map.Schema.Location.t()] | Ecto.Association.NotLoaded.t(), postal_code: String.t() }
line_one
: Line one of the address.line_two
: Line two of the address.postal_code
: Postal Code or Zipcode of the address.city
:StrawHat.Map.Schema.City.t/0
associated with the address.city_id
:id
ofStrawHat.Map.Schema.City.t/0
associated with the address.locations
: List ofStrawHat.Map.Schema.Location.t/0
associated with the address.
Link to this section Functions
Link to this function
changeset(address, address_attrs)
View Source
changeset(t(), address_attrs()) :: Ecto.Changeset.t()
Validate the attributes and return a Ecto.Changeset for the current Address.