Module: RedAlert::Notifier::ClassMethods

Defined in:
lib/red_alert/notifier.rb

Instance Method Summary collapse

Instance Method Details

#build(settings) ⇒ Object



36
37
38
39
40
41
42
43
# File 'lib/red_alert/notifier.rb', line 36

def build(settings)
  notifier = self.new
  notifier.to settings.fetch(:to)
  notifier.from settings.fetch(:from)
  notifier.subject settings.fetch(:subject)
  notifier.transport_settings settings.fetch(:transport_settings)
  notifier
end