Class: ApiResponse::Processor::Success
- Inherits:
-
Object
- Object
- ApiResponse::Processor::Success
- Extended by:
- Dry::Initializer
- Defined in:
- lib/api_response/processor/success.rb
Defined Under Namespace
Classes: ExtractError, StructError
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/api_response/processor/success.rb', line 18 def call return response if config.raw_response result = extract_from_body result = build_struct(result) if config.struct config.monad ? Success(result) : result end |