Class: Mailkube::Events::SendFailureContext
- Defined in:
- lib/mailkube/events/contexts.rb,
sig/mailkube/events/contexts.rbs
Overview
Why a scheduled send never went out (email.failed).
Deliberately not a FailureContext: this is message-level, so there is no recipient and
no SMTP code. reason stays a plain String for the same reason as everywhere else.
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
-
#reason ⇒ String
Why the send failed, e.g.
-
#timestamp ⇒ String
When the failure was recorded.
Methods inherited from Node
#==, #[], #block, #hash, #initialize, #to_h
Constructor Details
This class inherits a constructor from Mailkube::Events::Node
Instance Method Details
#reason ⇒ String
Returns why the send failed, e.g. mta_unreachable.
104 105 |
# File 'lib/mailkube/events/contexts.rb', line 104 def reason = self["reason"] # @return [String] when the failure was recorded. |
#timestamp ⇒ String
Returns when the failure was recorded.
106 |
# File 'lib/mailkube/events/contexts.rb', line 106 def = self["timestamp"] |