Class: OpenLoam::Workflow::Transition

Inherits:
Struct
  • Object
show all
Defined in:
lib/open_loam/workflow.rb

Overview

One declared move. from is a list because several states may share a move (e.g. cancel from draft OR pending_approval); roles empty means "not role-gated here" — the policy layer still gates the controller.

Instance Attribute Summary collapse

Instance Attribute Details

#from ⇒ Object

Returns the value of attribute from

Returns:

  • (Object) —

    the current value of from



36
37
38
# File 'lib/open_loam/workflow.rb', line 36

def from
  @from
end

#name ⇒ Object

Returns the value of attribute name

Returns:

  • (Object) —

    the current value of name



36
37
38
# File 'lib/open_loam/workflow.rb', line 36

def name
  @name
end

#roles ⇒ Object

Returns the value of attribute roles

Returns:

  • (Object) —

    the current value of roles



36
37
38
# File 'lib/open_loam/workflow.rb', line 36

def roles
  @roles
end

#to ⇒ Object

Returns the value of attribute to

Returns:

  • (Object) —

    the current value of to



36
37
38
# File 'lib/open_loam/workflow.rb', line 36

def to
  @to
end