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



79
80
81
# File 'lib/workflow.rb', line 79

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.



77
78
79
# File 'lib/workflow.rb', line 77

def action
  @action
end

#metaObject

Returns the value of attribute meta.



77
78
79
# File 'lib/workflow.rb', line 77

def meta
  @meta
end

#nameObject

Returns the value of attribute name.



77
78
79
# File 'lib/workflow.rb', line 77

def name
  @name
end

#transitions_toObject

Returns the value of attribute transitions_to.



77
78
79
# File 'lib/workflow.rb', line 77

def transitions_to
  @transitions_to
end