lib/mailgun/webhooks/webhooks.rb in mailgun-ruby-1.2.10 vs lib/mailgun/webhooks/webhooks.rb in mailgun-ruby-1.2.11

- old
+ new

@@ -56,11 +56,11 @@ # domain - A String of the domain name # url - A String of the url to set all webhooks to # # Returns true or false def create_all(domain, url = '') - %w(bounce click deliver drop open spam unsubscribe).each do |action| + %w(accepted clicked complained delivered opened permanent_fail temporary_fail unsubscribed).each do |action| add_webhook domain, action, url end true rescue false @@ -88,10 +88,10 @@ # domain - A required String of the domain to remove all webhooks for # # Returns a Boolean on the success def remove_all(domain) fail Mailgun::ParameterError('Domain not provided to remove webhooks from') unless domain - %w(bounce click deliver drop open spam unsubscribe).each do |action| + %w(accepted clicked complained delivered opened permanent_fail temporary_fail unsubscribed).each do |action| delete_webhook domain, action end end alias_method :delete_all, :remove_all alias_method :delete_all_webooks, :remove_all