Class: SSE::SSEEvent
- Inherits:
-
Struct
- Object
- Struct
- SSE::SSEEvent
- Defined in:
- lib/sse_client/sse_events.rb
Overview
Server-Sent Event type used by SSEClient and EventParser.
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#id ⇒ Object
Returns the value of attribute id.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
4 5 6 |
# File 'lib/sse_client/sse_events.rb', line 4 def data @data end |
#id ⇒ Object
Returns the value of attribute id
4 5 6 |
# File 'lib/sse_client/sse_events.rb', line 4 def id @id end |
#type ⇒ Object
Returns the value of attribute type
4 5 6 |
# File 'lib/sse_client/sse_events.rb', line 4 def type @type end |