Method: CoreLibrary::ResponseHandler#apply_api_response
- Defined in:
- lib/apimatic-core/response_handler.rb
#apply_api_response(response, deserialized_value) ⇒ Object
Applies API response.
222 223 224 225 226 227 228 229 |
# File 'lib/apimatic-core/response_handler.rb', line 222 def apply_api_response(response, deserialized_value) if @is_api_response errors = ApiHelper.map_response(deserialized_value, ['errors']) return ApiResponse.new(response, data: deserialized_value, errors: errors) end deserialized_value end |