Class: Mailkube::Events::DeliveryContext

Inherits:
Node
  • Object
show all
Defined in:
lib/mailkube/events/contexts.rb,
sig/mailkube/events/contexts.rbs

Overview

A single-recipient delivery outcome (email.delivered, email.sent).

Direct Known Subclasses

FailureContext

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

#recipientString

Returns the recipient this outcome is about.

Returns:

  • (String)

    the recipient this outcome is about.



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

def recipient = self["recipient"]
# @return [String] when the outcome was recorded.

#timestampString

Returns when the outcome was recorded.

Returns:

  • (String)

    when the outcome was recorded.



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

def timestamp = self["timestamp"]