From 57fba4ae06a23111d4aa7ad7bd63b514d4f16b6c Mon Sep 17 00:00:00 2001 From: Zouski Date: Mon, 29 Apr 2019 18:26:58 -0600 Subject: Add patch to hippie --- lib/net/hippie/client.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib') diff --git a/lib/net/hippie/client.rb b/lib/net/hippie/client.rb index 8983833..b496204 100644 --- a/lib/net/hippie/client.rb +++ b/lib/net/hippie/client.rb @@ -42,6 +42,12 @@ module Net request = request_for(Net::HTTP::Get, uri, headers: headers, body: body) execute(uri, request, &block) end + + def post(uri, headers: {}, body: {}, &block) + type = Net::HTTP::Patch + request = request_for(type, uri, headers: headers, body: body) + execute(uri, request, &block) + end def post(uri, headers: {}, body: {}, &block) type = Net::HTTP::Post -- cgit v1.2.3