Class: Mailkube::Events::UnknownEvent

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

Overview

An event type this release has never heard of.

Not an error: the contract requires an unknown type to degrade to untyped access so that a receiver keeps working when the platform adds a type, with no SDK upgrade. #data is the raw hash, and Node#[] reaches anything inside it.

Instance Attribute Summary

Attributes inherited from Node

#raw

Instance Method Summary collapse

Methods inherited from Event

#created_at, #type

Methods inherited from Node

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

Constructor Details

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

Instance Method Details

#dataHash{String => Object}

Returns the payload, undecoded.

Returns:

  • (Hash{String => Object})

    the payload, undecoded.



93
# File 'lib/mailkube/events/envelopes.rb', line 93

def data = self["data"] || {}