class Noticed::DeliveryMethods::Email
Public Instance Methods
deliver()
click to toggle source
# File lib/noticed/delivery_methods/email.rb, line 6 def deliver mailer.with(format).send(method.to_sym).deliver_now end
Private Instance Methods
format()
click to toggle source
# File lib/noticed/delivery_methods/email.rb, line 20 def format params = if (method = options[:format]) notification.send(method) else notification.params end params.merge(recipient: recipient, record: record) end
mailer()
click to toggle source
# File lib/noticed/delivery_methods/email.rb, line 12 def mailer options.fetch(:mailer).constantize end
method()
click to toggle source
# File lib/noticed/delivery_methods/email.rb, line 16 def method options[:method] || notification.class.name.underscore end