Class: Substation::Processor::Transformer::Outgoing

Inherits:
Object
  • Object
show all
Includes:
Outgoing
Defined in:
lib/substation/processor/transformer.rb

Overview

A transformer used to transform an outgoing response

Direct Known Subclasses

Wrapper::Outgoing

Instance Attribute Summary

Attributes included from Substation::Processor

#name

Instance Method Summary collapse

Methods included from Outgoing

#success?

Methods included from Substation::Processor

#initialize, #result, #success?

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.

Call the processor

Parameters:

  • response (Response)

    the response to process

Returns:

  • (Response)

    a new instance of the same class as response



39
40
41
# File 'lib/substation/processor/transformer.rb', line 39

def call(response)
  respond_with(response, execute(response))
end