geeks

Class: Workflow::Event

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

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, meta = {}, &action)
  @name, @transitions_to, @meta, @action = name, transitions_to.to_sym, meta, 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 meta
  @meta
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