Class: MailHandler::Receiving::Notification::DelayState
- Inherits:
-
Object
- Object
- MailHandler::Receiving::Notification::DelayState
- Defined in:
- lib/mailhandler/receiving/notification/email/states.rb
Overview
base state
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
-
#notified ⇒ Object
Returns the value of attribute notified.
Instance Method Summary collapse
-
#initialize(context) ⇒ DelayState
constructor
A new instance of DelayState.
- #notification_fired ⇒ Object
- #notify(_search) ⇒ Object
Constructor Details
#initialize(context) ⇒ DelayState
Returns a new instance of DelayState.
12 13 14 |
# File 'lib/mailhandler/receiving/notification/email/states.rb', line 12 def initialize(context) @context = context end |
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context.
9 10 11 |
# File 'lib/mailhandler/receiving/notification/email/states.rb', line 9 def context @context end |
#notified ⇒ Object
Returns the value of attribute notified.
9 10 11 |
# File 'lib/mailhandler/receiving/notification/email/states.rb', line 9 def notified @notified end |
Instance Method Details
#notification_fired ⇒ Object
16 17 18 |
# File 'lib/mailhandler/receiving/notification/email/states.rb', line 16 def notification_fired @notified = true end |
#notify(_search) ⇒ Object
20 21 22 |
# File 'lib/mailhandler/receiving/notification/email/states.rb', line 20 def notify(_search) raise MailHandler::InterfaceError, 'notify(search) interface has to be implemented.' end |