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)


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

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)


188
189
190
# File 'sig/types.rbs', line 188

def data
  @data
end

#event_typeString (readonly)

Returns the value of attribute event_type.

Returns:

  • (String)


187
188
189
# File 'sig/types.rbs', line 187

def event_type
  @event_type
end

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


189
190
191
# File 'sig/types.rbs', line 189

def id
  @id
end

#retryInteger (readonly)

Returns the value of attribute retry.

Returns:

  • (Integer)


190
191
192
# File 'sig/types.rbs', line 190

def retry
  @retry
end

Instance Method Details

#with_idSseEvent

Parameters:

  • id (String)

Returns:



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

def with_id: (String id) -> SseEvent

#with_retrySseEvent

Parameters:

  • retry_ms (Integer)

Returns:



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

def with_retry: (Integer retry_ms) -> SseEvent