code_corps v0.0.1 CodeCorps.DonationGoal View Source

Represents one of many donation goals which can belong to a project

Fields

  • amount - donation amount, in cents, needed to reach the goal
  • current - indicates if the goal is currently active
  • description - a longer, more informative description of the goal

Link to this section Summary

Functions

Builds a changeset based on the struct and params

Builds a changeset based on the struct and params

Builds a changeset based on the struct and params

Link to this section Types

Link to this type t() View Source
t() :: %CodeCorps.DonationGoal{__meta__: term(), amount: term(), current: term(), description: term(), id: term(), inserted_at: term(), project: term(), project_id: term(), updated_at: term()}

Link to this section Functions

Link to this function create_changeset(struct, params \\ %{}) View Source
create_changeset(struct(), map()) :: Ecto.Changeset.t()

Builds a changeset based on the struct and params.

Link to this function set_current_changeset(struct, params \\ %{}) View Source
set_current_changeset(struct(), map()) :: Ecto.Changeset.t()

Builds a changeset based on the struct and params.

Link to this function update_changeset(struct, params \\ %{}) View Source
update_changeset(struct(), map()) :: Ecto.Changeset.t()

Builds a changeset based on the struct and params.