class EmmetNotifications::Senders::Email
Public Class Methods
new(message)
click to toggle source
Calls superclass method
EmmetNotifications::Senders::Base::new
# File lib/emmet_notifications/senders/email.rb, line 4 def initialize(message) super(message, EmmetNotifications::Adapters::Email) end
Public Instance Methods
send_to_sender(email, options={})
click to toggle source
# File lib/emmet_notifications/senders/email.rb, line 8 def send_to_sender(email, options={}) @adapter.send_to email: email, subject: @message.subject, content: @template.render(@message.content, options) end