Class: Synapse::Command::CommandCallback
- Inherits:
-
Object
- Object
- Synapse::Command::CommandCallback
- Defined in:
- lib/synapse/command/command_callback.rb
Overview
Callback that is notified of the outcome of the dispatch of a command
Direct Known Subclasses
Instance Method Summary collapse
-
#on_failure(exception) ⇒ undefined
Called when a dispatch fails due to an exception.
-
#on_success(result) ⇒ undefined
Called when a dispatch is successful.
Instance Method Details
#on_failure(exception) ⇒ undefined
Called when a dispatch fails due to an exception
15 |
# File 'lib/synapse/command/command_callback.rb', line 15 def on_failure(exception); end |
#on_success(result) ⇒ undefined
Called when a dispatch is successful
9 |
# File 'lib/synapse/command/command_callback.rb', line 9 def on_success(result); end |