Class: MnoEnterprise::MailAdapters::TestAdapter
- Defined in:
- lib/mno_enterprise/mail_adapters/test_adapter.rb
Overview
Test Adapter for MnoEnterprise::MailClient Add messages to an internal array instead of sending them
Class Method Summary collapse
-
.deliver(*args) ⇒ Object
Send a template.
-
.send_template(*args) ⇒ Object
Send the provided template with options SparkpostClient.send_template(template_name(string), template_content(array), message(hash)).
Methods inherited from Adapter
base_deliveries, client, test?
Class Method Details
.deliver(*args) ⇒ Object
Send a template
9 10 11 |
# File 'lib/mno_enterprise/mail_adapters/test_adapter.rb', line 9 def deliver(*args) send_template(*args) end |
.send_template(*args) ⇒ Object
Send the provided template with options SparkpostClient.send_template(template_name(string), template_content(array), message(hash))
15 16 17 |
# File 'lib/mno_enterprise/mail_adapters/test_adapter.rb', line 15 def send_template(*args) base_deliveries.push(*args) end |