module Substation::Processor::Outgoing
Supports outgoing {Processor} instances
Public Instance Methods
success?(_response)
click to toggle source
Test wether chain processing should continue
@param [Response] _response
the response returned from invoking the processor
@return [true]
@api private
# File lib/substation/processor.rb, line 212 def success?(_response) true end
Private Instance Methods
respond_with(response, output)
click to toggle source
Build a new {Response} based on response
and output
@param [Response] response
the original response
@param [Object] output
the data to be wrapped within the new {Response}
@return [Response]
@api private
# File lib/substation/processor.rb, line 229 def respond_with(response, output) response.class.new(response.request, output) end