Class: Factor::Runtime::ExecHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/runtime/exec_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_blockObject

Returns the value of attribute fail_block.



4
5
6
# File 'lib/runtime/exec_handler.rb', line 4

def fail_block
  @fail_block
end

#paramsObject

Returns the value of attribute params.



4
5
6
# File 'lib/runtime/exec_handler.rb', line 4

def params
  @params
end

#serviceObject

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