Class: Substation::Processor::Wrapper
- Inherits:
-
Object
- Object
- Substation::Processor::Wrapper
- Includes:
- Outgoing
- Defined in:
- lib/substation/processor/wrapper.rb
Overview
A processor that wraps output data in a new handler instance
Instance Method Summary collapse
-
#call(response) ⇒ Response
private
Wrap response data in an instance of #handler.
Methods included from Chain::Outgoing
Instance Method Details
#call(response) ⇒ Response
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Wrap response data in an instance of #handler
18 19 20 |
# File 'lib/substation/processor/wrapper.rb', line 18 def call(response) respond_with(response, handler.new(response.output)) end |