Class: MailHandler::Receiving::Notification::NoDelay
- Inherits:
-
DelayState
- Object
- DelayState
- MailHandler::Receiving::Notification::NoDelay
- Defined in:
- lib/mailhandler/receiving/notification/email/states.rb
Overview
there was no delay
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
43 44 45 46 47 |
# File 'lib/mailhandler/receiving/notification/email/states.rb', line 43 def notify(search) return unless Time.now - search.started_at >= context.min_time_to_notify change_notification_state(search, Delay.new(context)) end |