class Dallal::Notifications::EmailNotification

Attributes

from_email[R]
from_name[R]
template_name[R]

Public Class Methods

new(notification, target) click to toggle source
# File lib/dallal/notifications/email_notification.rb, line 8
def initialize(notification, target)
  super(notification, target)

  @from_name = Dallal.configuration.from_name
  @from_email = Dallal.configuration.from_email
end

Public Instance Methods

notifier() click to toggle source
# File lib/dallal/notifications/email_notification.rb, line 15
def notifier
  Dallal::Notifiers::EmailNotifier.new(self)
end
template(template) click to toggle source
# File lib/dallal/notifications/email_notification.rb, line 19
def template template
  @template_name = template
end