Exception: Eventsimple::InvalidTransition

Inherits:
StandardError
  • Object
show all
Defined in:
lib/eventsimple/invalid_transition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass = nil) ⇒ InvalidTransition

Returns a new instance of InvalidTransition.



5
6
7
8
# File 'lib/eventsimple/invalid_transition.rb', line 5

def initialize(klass = nil)
  @klass = klass
  super
end

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



3
4
5
# File 'lib/eventsimple/invalid_transition.rb', line 3

def klass
  @klass
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/eventsimple/invalid_transition.rb', line 10

def to_s
  "Invalid State Transition for #{klass}"
end