Current section

Files

Jump to
wongi_engine lib wongi engine dsl rule.ex
Raw

lib/wongi/engine/dsl/rule.ex

defmodule Wongi.Engine.DSL.Rule do
@moduledoc false
@type t() :: %__MODULE__{}
defstruct [:ref, :name, :forall, :actions]
@doc false
def new(name, forall, actions) do
%__MODULE__{
ref: make_ref(),
name: name,
forall: forall,
actions: actions
}
end
end