Module: MandrillClient Deprecated
- Defined in:
- lib/mandrill_client.rb
Overview
Deprecated.
Please use MnoEnterprise::MailClient
An interface to the Mandrill API
Class Method Summary collapse
-
.client ⇒ Object
deprecated
Deprecated.
Use MnoEnterprise::MailClient
-
.deliver(template, from, to, vars = {}, opts = {}) ⇒ Object
deprecated
Deprecated.
Use MnoEnterprise::MailClient
-
.send_template(*args) ⇒ Object
deprecated
Deprecated.
Use MnoEnterprise::MailClient
Class Method Details
.client ⇒ Object
Deprecated.
Use MnoEnterprise::MailClient
Return a mandrill client configured with the right API key
9 10 11 |
# File 'lib/mandrill_client.rb', line 9 def client @client ||= Mandrill::API.new(MnoEnterprise.mandrill_key) end |
.deliver(template, from, to, vars = {}, opts = {}) ⇒ Object
Deprecated.
Use MnoEnterprise::MailClient
A simpler version of send_template
25 26 27 28 |
# File 'lib/mandrill_client.rb', line 25 def deliver(template,from,to,vars = {},opts = {}) warn '[DEPRECATION] `MandrillClient` is deprecated. Please use `MnoEnterprise::MailClient` instead.' MnoEnterprise::MailClient.deliver(template,from,to,vars,opts) end |
.send_template(*args) ⇒ Object
Deprecated.
Use MnoEnterprise::MailClient
Send the provided template with options
17 18 19 20 |
# File 'lib/mandrill_client.rb', line 17 def send_template(*args) warn '[DEPRECATION] `MandrillClient` is deprecated. Please use `MnoEnterprise::MailClient` instead.' MnoEnterprise::MailClient.adapter.send_template(*args) end |