Class: Workflow::Event

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, transitions_to, meta = {}, &action) ⇒ Event

Returns a new instance of Event.



121
122
123
# File 'lib/workflow.rb', line 121

def initialize(name, transitions_to, meta = {}, &action)
  @name, @transitions_to, @meta, @action = name, transitions_to.to_sym, meta, action
end

Instance Attribute Details

#actionObject

Returns the value of attribute action.



119
120
121
# File 'lib/workflow.rb', line 119

def action
  @action
end

#metaObject

Returns the value of attribute meta.



119
120
121
# File 'lib/workflow.rb', line 119

def meta
  @meta
end

#nameObject

Returns the value of attribute name.



119
120
121
# File 'lib/workflow.rb', line 119

def name
  @name
end

#transitions_toObject

Returns the value of attribute transitions_to.



119
120
121
# File 'lib/workflow.rb', line 119

def transitions_to
  @transitions_to
end