Class: Snails::Mailer::Backend

Inherits:
Object
  • Object
show all
Defined in:
lib/snails/mailer.rb

Direct Known Subclasses

MailgunBackend, TestBackend, TuktukBackend

Instance Method Summary collapse

Instance Method Details

#deliver(email, options = {}) ⇒ Object



147
148
149
# File 'lib/snails/mailer.rb', line 147

def deliver(email, options = {})
  raise "Please redefine in subclass"
end

#deliver_many(emails, options = {}) ⇒ Object



151
152
153
# File 'lib/snails/mailer.rb', line 151

def deliver_many(emails, options = {})
  emails.map { |e| deliver(e, options) }
end