Class: Mailkube::Events::SendFailureContext

Inherits:
Node
  • Object
show all
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

#raw

Instance Method Summary collapse

Methods inherited from Node

#==, #[], #block, #hash, #initialize, #to_h

Constructor Details

This class inherits a constructor from Mailkube::Events::Node

Instance Method Details

#reasonString

Returns why the send failed, e.g. mta_unreachable.

Returns:

  • (String)

    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.

#timestampString

Returns when the failure was recorded.

Returns:

  • (String)

    when the failure was recorded.



106
# File 'lib/mailkube/events/contexts.rb', line 106

def timestamp = self["timestamp"]