Class: Smplkit::EventStream::Parser::Event

Inherits:
Struct
  • Object
show all
Defined in:
lib/smplkit/event_stream.rb

Overview

One complete SSE event: name is the event name (from the event: field, defaulting to "message"), data the joined data payload.

Instance Attribute Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



78
79
80
# File 'lib/smplkit/event_stream.rb', line 78

def data
  @data
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



78
79
80
# File 'lib/smplkit/event_stream.rb', line 78

def name
  @name
end