mobilizon.chapril.org-mobil.../lib/mobilizon/events/event_offer.ex

20 lines
356 B
Elixir
Raw Permalink Normal View History

2019-09-13 01:01:17 +02:00
defmodule Mobilizon.Events.EventOffer do
@moduledoc """
Represents an event offer.
"""
use Ecto.Schema
@type t :: %__MODULE__{
price: float,
price_currency: String.t(),
url: String.t()
}
embedded_schema do
field(:price, :float)
field(:price_currency, :string)
field(:url, :string)
end
end