Class: Workflow::Event
- Inherits:
-
Object
- Object
- Workflow::Event
- Defined in:
- lib/workflow.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#name ⇒ Object
Returns the value of attribute name.
-
#transitions_to ⇒ Object
Returns the value of attribute transitions_to.
Instance Method Summary collapse
-
#initialize(name, transitions_to, meta = {}, &action) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(name, transitions_to, meta = {}, &action) ⇒ Event
Returns a new instance of Event.
91 92 93 |
# File 'lib/workflow.rb', line 91 def initialize(name, transitions_to, = {}, &action) @name, @transitions_to, @meta, @action = name, transitions_to.to_sym, , action end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
89 90 91 |
# File 'lib/workflow.rb', line 89 def action @action end |
#meta ⇒ Object
Returns the value of attribute meta.
89 90 91 |
# File 'lib/workflow.rb', line 89 def @meta end |
#name ⇒ Object
Returns the value of attribute name.
89 90 91 |
# File 'lib/workflow.rb', line 89 def name @name end |
#transitions_to ⇒ Object
Returns the value of attribute transitions_to.
89 90 91 |
# File 'lib/workflow.rb', line 89 def transitions_to @transitions_to end |