Class: Noticed::DeliveryMethods::Email

Inherits:
Base
  • Object
show all
Defined in:
lib/noticed/delivery_methods/email.rb

Instance Attribute Summary

Attributes inherited from Base

#notification, #options, #params, #recipient, #record

Instance Method Summary collapse

Methods inherited from Base

#assign_args, inherited, options, #perform, validate!

Instance Method Details

#deliverObject



6
7
8
9
10
11
12
# File 'lib/noticed/delivery_methods/email.rb', line 6

def deliver
  if options[:enqueue]
    mailer.with(format).send(method.to_sym).deliver_later
  else
    mailer.with(format).send(method.to_sym).deliver_now
  end
end