Class: Substation::Processor::Transformer::Incoming

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

Overview

A transformer used to transform an incoming request

Direct Known Subclasses

Wrapper::Incoming

Instance Method Summary collapse

Methods included from Incoming

#result

Methods included from Fallible

#with_failure_chain

Methods included from Substation::Processor

#initialize, #name, #result, #success?

Instance Method Details

#call(request) ⇒ Response::Success

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:

  • request (Request)

    the request to process

Returns:



21
22
23
# File 'lib/substation/processor/transformer.rb', line 21

def call(request)
  request.success(execute(request))
end