Refactoring of Events context
This commit is contained in:
19
lib/mobilizon/events/event_offer.ex
Normal file
19
lib/mobilizon/events/event_offer.ex
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
Reference in New Issue
Block a user