lib/intercom/request.rb in intercom-0.0.6 vs lib/intercom/request.rb in intercom-0.0.7

- old
+ new

@@ -26,9 +26,14 @@ def self.post(url, form_data) uri = URI.parse(url) new(uri, method_with_body(Net::HTTP::Post, uri, form_data)) end + def self.delete(url, params) + uri = URI.parse(url) + new(uri, Net::HTTP::Delete.new(append_query_string_to_url(uri.path, params), default_headers)) + end + def self.put(url, form_data) uri = URI.parse(url) new(uri, method_with_body(Net::HTTP::Put, uri, form_data)) end \ No newline at end of file