diff options
| author | mo khan <mokhan@users.noreply.github.com> | 2019-04-30 10:06:22 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-30 10:06:22 -0600 |
| commit | fedeebcaf06815c4fc6506835d56a236f3a62616 (patch) | |
| tree | ab01d3debd0ef0820b7ca3a75d8415b3596381e2 | |
| parent | cd730c11601ef54631f8ab6f883864639ea758bd (diff) | |
| parent | ed3468dc231d84aaf26883f3ea547c13c79eb02f (diff) | |
Merge pull request #2 from Zouski/patch-1
Add patch to hippie
| -rw-r--r-- | lib/net/hippie/client.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/net/hippie/client.rb b/lib/net/hippie/client.rb index 8983833..c5a6618 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 patch(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 |
