lib/mail/notify/delivery_method.rb in mail-notify-0.2.1 vs lib/mail/notify/delivery_method.rb in mail-notify-0.2.2
- old
+ new
@@ -4,9 +4,11 @@
module Notify
class DeliveryMethod
attr_accessor :settings, :response
def initialize(settings)
+ raise ArgumentError, 'You must specify an API key' if settings[:api_key].blank?
+
@settings = settings
end
def deliver!(mail)
@mail = mail