Class: Substation::Processor::Wrapper

Inherits:
Object
  • Object
show all
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

Methods included from Chain::Outgoing

#result

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

Parameters:

  • response (Response)

    the response to process

Returns:



18
19
20
# File 'lib/substation/processor/wrapper.rb', line 18

def call(response)
  respond_with(response, handler.new(response.output))
end