Class: Factor::Runtime::ExecHandler
- Inherits:
-
Object
- Object
- Factor::Runtime::ExecHandler
- Defined in:
- lib/runtime/exec_handler.rb
Instance Attribute Summary collapse
-
#fail_block ⇒ Object
Returns the value of attribute fail_block.
-
#params ⇒ Object
Returns the value of attribute params.
-
#service ⇒ Object
Returns the value of attribute service.
Instance Method Summary collapse
-
#initialize(service = nil, params = {}) ⇒ ExecHandler
constructor
A new instance of ExecHandler.
- #on_fail(&block) ⇒ Object
Constructor Details
#initialize(service = nil, params = {}) ⇒ ExecHandler
Returns a new instance of ExecHandler.
6 7 8 9 |
# File 'lib/runtime/exec_handler.rb', line 6 def initialize(service = nil, params = {}) @service = service @params = params end |
Instance Attribute Details
#fail_block ⇒ Object
Returns the value of attribute fail_block.
4 5 6 |
# File 'lib/runtime/exec_handler.rb', line 4 def fail_block @fail_block end |
#params ⇒ Object
Returns the value of attribute params.
4 5 6 |
# File 'lib/runtime/exec_handler.rb', line 4 def params @params end |
#service ⇒ Object
Returns the value of attribute service.
4 5 6 |
# File 'lib/runtime/exec_handler.rb', line 4 def service @service end |
Instance Method Details
#on_fail(&block) ⇒ Object
11 12 13 |
# File 'lib/runtime/exec_handler.rb', line 11 def on_fail(&block) @fail_block = block end |