Exception: Eventsimple::InvalidTransition
- Inherits:
-
StandardError
- Object
- StandardError
- Eventsimple::InvalidTransition
- Defined in:
- lib/eventsimple/invalid_transition.rb
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
-
#initialize(klass = nil) ⇒ InvalidTransition
constructor
A new instance of InvalidTransition.
- #to_s ⇒ Object
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
#klass ⇒ Object (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_s ⇒ Object
10 11 12 |
# File 'lib/eventsimple/invalid_transition.rb', line 10 def to_s "Invalid State Transition for #{klass}" end |