Class: MandrillMailer::MessageMailer
- Inherits:
-
CoreMailer
- Object
- CoreMailer
- MandrillMailer::MessageMailer
- Defined in:
- lib/mandrill_mailer/offline.rb,
lib/mandrill_mailer/message_mailer.rb
Instance Attribute Summary
Attributes inherited from CoreMailer
#async, #ip_pool, #message, #send_at
Instance Method Summary collapse
-
#deliver ⇒ Object
Public: Triggers the stored Mandrill params to be sent to the Mandrill api.
- #deliver_later(options = {}) ⇒ Object
- #deliver_now ⇒ Object
Methods inherited from CoreMailer
#bcc, default, #from, #mandrill_mail, #mandrill_mail_handler, super_defaults, test, test_setup_for, #to, #to=
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class MandrillMailer::CoreMailer
Instance Method Details
#deliver ⇒ Object
Public: Triggers the stored Mandrill params to be sent to the Mandrill api
99 100 101 |
# File 'lib/mandrill_mailer/message_mailer.rb', line 99 def deliver deliver_now end |
#deliver_later(options = {}) ⇒ Object
73 74 75 76 77 78 79 80 81 82 |
# File 'lib/mandrill_mailer/offline.rb', line 73 def deliver_later MandrillMailer::Mock.new({ :message => , :async => async, :ip_pool => ip_pool, :send_at => send_at }).tap do |mock| MandrillMailer.deliveries << mock end end |
#deliver_now ⇒ Object
63 64 65 66 67 68 69 70 71 72 |
# File 'lib/mandrill_mailer/offline.rb', line 63 def deliver_now MandrillMailer::Mock.new({ :message => , :async => async, :ip_pool => ip_pool, :send_at => send_at }).tap do |mock| MandrillMailer.deliveries << mock end end |