Current section

Files

Jump to
active_campaign lib active_campaign deal status.ex
Raw

lib/active_campaign/deal/status.ex

defmodule ActiveCampaign.Deal.Status do
@moduledoc """
A deal's status is represented by an integer constant.
"""
@open 0
@won 1
@lost 2
@spec open :: integer()
def open, do: @open
@spec won :: integer()
def won, do: @won
@spec lost :: integer()
def lost, do: @lost
end