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