Class: Spikard::SseEvent
- Inherits:
-
Object
- Object
- Spikard::SseEvent
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#data ⇒ json_value
readonly
Returns the value of attribute data.
-
#event_type ⇒ String
readonly
Returns the value of attribute event_type.
-
#id ⇒ String
readonly
Returns the value of attribute id.
-
#retry ⇒ Integer
readonly
Returns the value of attribute retry.
Instance Method Summary collapse
-
#initialize ⇒ SseEvent
constructor
A new instance of SseEvent.
- #with_id ⇒ SseEvent
- #with_retry ⇒ SseEvent
Constructor Details
#initialize ⇒ SseEvent
Returns a new instance of SseEvent.
208 |
# File 'sig/types.rbs', line 208
def initialize: (?event_type: String, data: json_value, ?id: String, ?retry: Integer) -> void
|
Instance Attribute Details
#data ⇒ json_value (readonly)
Returns the value of attribute data.
204 205 206 |
# File 'sig/types.rbs', line 204 def data @data end |
#event_type ⇒ String (readonly)
Returns the value of attribute event_type.
203 204 205 |
# File 'sig/types.rbs', line 203 def event_type @event_type end |
#id ⇒ String (readonly)
Returns the value of attribute id.
205 206 207 |
# File 'sig/types.rbs', line 205 def id @id end |
#retry ⇒ Integer (readonly)
Returns the value of attribute retry.
206 207 208 |
# File 'sig/types.rbs', line 206 def retry @retry end |