From 13630e2a3d502957817d0428cf0b8bffb2da02cd Mon Sep 17 00:00:00 2001 From: Javier Acero Date: Tue, 8 Mar 2016 14:29:11 +0100 Subject: [PATCH] Review webhooks for attribute default value --- lib/dnsimple/client/webhooks.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dnsimple/client/webhooks.rb b/lib/dnsimple/client/webhooks.rb index ccfc2842..fb776822 100644 --- a/lib/dnsimple/client/webhooks.rb +++ b/lib/dnsimple/client/webhooks.rb @@ -32,7 +32,7 @@ def webhooks(account_id, options = {}) # @return [Dnsimple::Response] # # @raise [Dnsimple::RequestError] - def create_webhook(account_id, attributes = {}, options = {}) + def create_webhook(account_id, attributes, options = {}) Extra.validate_mandatory_attributes(attributes, [:url]) response = client.post(Client.versioned("/%s/webhooks" % [account_id]), attributes, options) @@ -71,7 +71,7 @@ def webhook(account_id, webhook_id, options = {}) # @raise [Dnsimple::NotFoundError] # @raise [Dnsimple::RequestError] def delete_webhook(account_id, webhook_id, options = {}) - response = client.delete(Client.versioned("/%s/webhooks/%s" % [account_id, webhook_id]), {}, options) + response = client.delete(Client.versioned("/%s/webhooks/%s" % [account_id, webhook_id]), nil, options) Dnsimple::Response.new(response, nil) end