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.



91
92
93
# File 'lib/workflow.rb', line 91

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.



89
90
91
# File 'lib/workflow.rb', line 89

def action
  @action
end

#metaObject

Returns the value of attribute meta.



89
90
91
# File 'lib/workflow.rb', line 89

def meta
  @meta
end

#nameObject

Returns the value of attribute name.



89
90
91
# File 'lib/workflow.rb', line 89

def name
  @name
end

#transitions_toObject

Returns the value of attribute transitions_to.



89
90
91
# File 'lib/workflow.rb', line 89

def transitions_to
  @transitions_to
end