class APIClientBuilder::DeleteRequest
Public Instance Methods
response()
click to toggle source
Yields the response body if the response was successful. Will call the response handlers if there was not a successful response.
@return [JSON] the http response body
# File lib/api_client_builder/delete_request.rb, line 7 def response response = response_handler.delete_request if response.success? response else error_handlers.each do |handler| handler.call(response, self) end end end