Class: Workflow::State

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, meta = {}) ⇒ State



62
63
64
# File 'lib/workflow.rb', line 62

def initialize(name, meta = {})
  @name, @events, @meta = name, Hash.new, meta
end

Instance Attribute Details

#eventsObject

Returns the value of attribute events.



60
61
62
# File 'lib/workflow.rb', line 60

def events
  @events
end

#metaObject

Returns the value of attribute meta.



60
61
62
# File 'lib/workflow.rb', line 60

def meta
  @meta
end

#nameObject

Returns the value of attribute name.



60
61
62
# File 'lib/workflow.rb', line 60

def name
  @name
end

#on_entryObject

Returns the value of attribute on_entry.



60
61
62
# File 'lib/workflow.rb', line 60

def on_entry
  @on_entry
end

#on_exitObject

Returns the value of attribute on_exit.



60
61
62
# File 'lib/workflow.rb', line 60

def on_exit
  @on_exit
end

Instance Method Details

#to_sObject



66
67
68
# File 'lib/workflow.rb', line 66

def to_s
  "#{name}"
end

#to_symObject



70
71
72
# File 'lib/workflow.rb', line 70

def to_sym
  name.to_sym
end