lib/outreach/request.rb in outreach-0.1.0 vs lib/outreach/request.rb in outreach-0.1.1

- old
+ new

@@ -21,9 +21,15 @@ response_format = params.delete(:response_format) || :json response = HTTParty.post(url, body: params.to_json, headers: auth_header) parse_response(response, response_format) end + def patch(url, params) + response_format = params.delete(:response_format) || :json + response = HTTParty.patch(url, body: params.to_json, headers: auth_header) + parse_response(response, response_format) + end + def delete(url) response = HTTParty.delete(url, headers: auth_header) parse_response(response) end