Skip to content

Commit

Permalink
Review webhooks for attribute default value
Browse files Browse the repository at this point in the history
  • Loading branch information
jacegu committed Mar 8, 2016
1 parent de4b064 commit 13630e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dnsimple/client/webhooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def webhooks(account_id, options = {})
# @return [Dnsimple::Response<Dnsimple::Struct::Webhook>]
#
# @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)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 13630e2

Please sign in to comment.