Class: Quonfig::StreamEvent
- Inherits:
-
Struct
- Object
- Struct
- Quonfig::StreamEvent
- Defined in:
- lib/quonfig/sse_config_client.rb
Overview
Event delivered to on_envelope. id mirrors the SSE id: field and is consumed by callers that want the server cursor (tests + last-event-id resume). data is the raw data: payload string. envelope is the parsed Quonfig::ConfigEnvelope.
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#envelope ⇒ Object
Returns the value of attribute envelope.
-
#id ⇒ Object
Returns the value of attribute id.
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
13 14 15 |
# File 'lib/quonfig/sse_config_client.rb', line 13 def data @data end |
#envelope ⇒ Object
Returns the value of attribute envelope
13 14 15 |
# File 'lib/quonfig/sse_config_client.rb', line 13 def envelope @envelope end |
#id ⇒ Object
Returns the value of attribute id
13 14 15 |
# File 'lib/quonfig/sse_config_client.rb', line 13 def id @id end |