Class: MailHandler::Receiving::Notification::Delay
- Inherits:
-
DelayState
- Object
- DelayState
- MailHandler::Receiving::Notification::Delay
- Defined in:
- lib/mailhandler/receiving/notification/email/states.rb
Overview
delay happened
Instance Attribute Summary
Attributes inherited from DelayState
Instance Method Summary collapse
Methods inherited from DelayState
#initialize, #notification_fired
Constructor Details
This class inherits a constructor from MailHandler::Receiving::Notification::DelayState
Instance Method Details
#notify(search) ⇒ Object
52 53 54 55 56 57 58 59 60 |
# File 'lib/mailhandler/receiving/notification/email/states.rb', line 52 def notify(search) if search.result change_notification_state(search, Received.new(context)) elsif max_time_to_notify?(search) change_notification_state(search, MaxDelay.new(context)) else send_notification_email(:delayed, search) end end |