class Workflow::Event

Attributes

action[RW]
meta[RW]
name[RW]
transitions_to[RW]

Public Class Methods

new(name, transitions_to, meta = {}, &action) click to toggle source
# File lib/workflow.rb, line 110
def initialize(name, transitions_to, meta = {}, &action)
  @name, @transitions_to, @meta, @action = name, transitions_to.to_sym, meta, action
end

Public Instance Methods

perform_validation?() click to toggle source
# File lib/workflow.rb, line 114
def perform_validation?
  !self.meta[:skip_all_validations]
end
to_s() click to toggle source
# File lib/workflow.rb, line 122
def to_s
  @name.to_s
end
to_sym() click to toggle source
# File lib/workflow.rb, line 118
def to_sym
  @name.to_sym
end