Class: MisarMail::StreamEvent

Inherits:
Struct
  • Object
show all
Defined in:
lib/misar_mail/client.rb

Overview

One decoded SSE frame.

MisarMail emits unnamed frames — data: {...} with no event: line — so event is normally nil. data is the decoded JSON; raw is always the payload exactly as received.

Instance Attribute Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



557
558
559
# File 'lib/misar_mail/client.rb', line 557

def data
  @data
end

#eventObject

Returns the value of attribute event

Returns:

  • (Object)

    the current value of event



557
558
559
# File 'lib/misar_mail/client.rb', line 557

def event
  @event
end

#rawObject

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



557
558
559
# File 'lib/misar_mail/client.rb', line 557

def raw
  @raw
end