Class: SSE::SSEEvent

Inherits:
Struct
  • Object
show all
Defined in:
lib/sse_client/sse_events.rb

Overview

Server-Sent Event type used by SSEClient and EventParser.

Instance Attribute Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



4
5
6
# File 'lib/sse_client/sse_events.rb', line 4

def data
  @data
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



4
5
6
# File 'lib/sse_client/sse_events.rb', line 4

def id
  @id
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



4
5
6
# File 'lib/sse_client/sse_events.rb', line 4

def type
  @type
end