Class: Delayed::PerformableMailer
- Inherits:
-
PerformableMethod
- Object
- PerformableMethod
- Delayed::PerformableMailer
- Defined in:
- lib/delayed/performable_mailer.rb
Instance Attribute Summary
Attributes inherited from PerformableMethod
Instance Method Summary collapse
Methods inherited from PerformableMethod
#display_name, #encode_with, #initialize, #method, #method_missing, #respond_to?
Constructor Details
This class inherits a constructor from Delayed::PerformableMethod
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Delayed::PerformableMethod
Instance Method Details
#perform ⇒ Object
5 6 7 8 |
# File 'lib/delayed/performable_mailer.rb', line 5 def perform mailer = object.send(method_name, *args) mailer.respond_to?(:deliver_now) ? mailer.deliver_now : mailer.deliver end |