Class: ExpressHoldAlertMailer
- Inherits:
-
InternalNotificationMailer
- Object
- ActionMailer::Base
- ApplicationMailer
- InternalNotificationMailer
- ExpressHoldAlertMailer
- Defined in:
- app/mailers/express_hold_alert_mailer.rb
Overview
Escalating alerts for express-shipping sales orders still in credit hold as the
warehouse cutoff nears. Fired by Order::SendExpressHoldAlerts; both actions
render the shared +alert+ template.
Instance Method Summary collapse
-
#urgent(order) ⇒ Object
~30 minutes before the warehouse closes.
-
#warning(order) ⇒ Object
~2 hours before the warehouse closes.
Methods inherited from InternalNotificationMailer
Methods included from SendgridSmtpApi::InternalMailerHeaders
Methods inherited from ApplicationMailer
Instance Method Details
#urgent(order) ⇒ Object
~30 minutes before the warehouse closes.
11 |
# File 'app/mailers/express_hold_alert_mailer.rb', line 11 def urgent(order) = build_alert(order, level: 'URGENT', window: '30min') |
#warning(order) ⇒ Object
~2 hours before the warehouse closes.
8 |
# File 'app/mailers/express_hold_alert_mailer.rb', line 8 def warning(order) = build_alert(order, level: 'IMPORTANT', window: '2 hours') |