lib/branch_io/client.rb in branch_io-0.2.0 vs lib/branch_io/client.rb in branch_io-0.3.0

- old
+ new

@@ -38,9 +38,14 @@ def put(url, data = {}) body = data.to_json self.class.put(url, body: body, headers: default_headers) end + def delete(url, data = {}) + body = data.to_json + self.class.delete(url, body: body, headers: default_headers) + end + private def ensure_branch_secret_defined! unless branch_secret raise ErrorMissingBranchKey, "No Branch Secret found: please provided one such key to BranchIO::Client#initialize or by setting the BRANCH_SECRET environment variable"