lib/pushpad/request.rb in pushpad-1.2.0 vs lib/pushpad/request.rb in pushpad-1.3.0
- old
+ new
@@ -17,9 +17,15 @@
perform(Net::HTTP::Post, endpoint, options) do |request|
request.body = body
end
end
+ def patch(endpoint, body, options = {})
+ perform(Net::HTTP::Patch, endpoint, options) do |request|
+ request.body = body
+ end
+ end
+
def delete(endpoint, options = {})
perform(Net::HTTP::Delete, endpoint, options)
end
private