Class: BetterOpener::DeliveryMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/better_opener/delivery_method.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ DeliveryMethod

Returns a new instance of DeliveryMethod.



4
5
# File 'lib/better_opener/delivery_method.rb', line 4

def initialize(options = {})
end

Instance Method Details

#deliver!(mail) ⇒ Object



7
8
9
# File 'lib/better_opener/delivery_method.rb', line 7

def deliver!(mail)
  BetterOpener.add_notification("email", mail.subject, BetterOpener.render_email('NAME', mail))
end