Class: Philiprehberger::StateMachine::Callback
- Inherits:
-
Struct
- Object
- Struct
- Philiprehberger::StateMachine::Callback
- Defined in:
- lib/philiprehberger/state_machine/callbacks.rb
Overview
Represents a single callback with optional state filters.
Instance Attribute Summary collapse
-
#block ⇒ Proc
readonly
the callback to execute.
-
#conditions ⇒ Hash
readonly
optional :from and :to filters.
-
#type ⇒ :before, :after
readonly
callback timing.
Instance Attribute Details
#block ⇒ Proc (readonly)
the callback to execute
10 11 12 |
# File 'lib/philiprehberger/state_machine/callbacks.rb', line 10 def block @block end |
#conditions ⇒ Hash (readonly)
optional :from and :to filters
10 11 12 |
# File 'lib/philiprehberger/state_machine/callbacks.rb', line 10 def conditions @conditions end |
#type ⇒ :before, :after (readonly)
callback timing
10 11 12 |
# File 'lib/philiprehberger/state_machine/callbacks.rb', line 10 def type @type end |