Method: CoreLibrary::ResponseHandler#apply_convertor

Defined in:
lib/apimatic-core/response_handler.rb

#apply_convertor(deserialized_value) ⇒ Object

Applies converter to the response.

Parameters:

  • deserialized_value

    The deserialized value.



233
234
235
236
237
# File 'lib/apimatic-core/response_handler.rb', line 233

def apply_convertor(deserialized_value)
  return @convertor.call(deserialized_value) unless @convertor.nil?

  deserialized_value
end