Class: Spikard::SseEvent

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSseEvent

Returns a new instance of SseEvent.

Parameters:

  • event_type: (String)
  • data: (json_value)
  • id: (String)
  • retry: (Integer)


208
# File 'sig/types.rbs', line 208

def initialize: (?event_type: String, data: json_value, ?id: String, ?retry: Integer) -> void

Instance Attribute Details

#datajson_value (readonly)

Returns the value of attribute data.

Returns:

  • (json_value)


204
205
206
# File 'sig/types.rbs', line 204

def data
  @data
end

#event_typeString (readonly)

Returns the value of attribute event_type.

Returns:

  • (String)


203
204
205
# File 'sig/types.rbs', line 203

def event_type
  @event_type
end

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


205
206
207
# File 'sig/types.rbs', line 205

def id
  @id
end

#retryInteger (readonly)

Returns the value of attribute retry.

Returns:

  • (Integer)


206
207
208
# File 'sig/types.rbs', line 206

def retry
  @retry
end

Instance Method Details

#with_idSseEvent

Parameters:

  • id (String)

Returns:



209
# File 'sig/types.rbs', line 209

def with_id: (String id) -> SseEvent

#with_retrySseEvent

Parameters:

  • retry_ms (Integer)

Returns:



210
# File 'sig/types.rbs', line 210

def with_retry: (Integer retry_ms) -> SseEvent