Method: CoreLibrary::ApiCall#response

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

#response(response_handler) ⇒ ApiCall

The setter for the response handler to be used for handling the response of an API call.

Parameters:

Returns:

  • (ApiCall)

    An updated instance of ApiCall.



31
32
33
34
# File 'lib/apimatic-core/api_call.rb', line 31

def response(response_handler)
  @response_handler = response_handler
  self
end