lib/mailgun/webhooks/webhooks.rb in mailgun-ruby-1.1.8 vs lib/mailgun/webhooks/webhooks.rb in mailgun-ruby-1.1.9

- old
+ new

@@ -44,10 +44,10 @@ # url - A String of the url of the webhook # # Returns a Boolean of whether the webhook was created def create(domain, action, url = '') res = @client.post("domains/#{domain}/webhooks", id: action, url: url) - res.to_h['webhook']['url'] == url && res.to_h[message] == 'Webhook has been created' + res.to_h['webhook']['url'] == url && res.to_h['message'] == 'Webhook has been created' end alias_method :add, :create alias_method :add_webhook, :create # Public: Sets all webhooks to the same URL