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.
192 |
# File 'sig/types.rbs', line 192
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.
188 189 190 |
# File 'sig/types.rbs', line 188 def data @data end |
#event_type ⇒ String (readonly)
Returns the value of attribute event_type.
187 188 189 |
# File 'sig/types.rbs', line 187 def event_type @event_type end |
#id ⇒ String (readonly)
Returns the value of attribute id.
189 190 191 |
# File 'sig/types.rbs', line 189 def id @id end |
#retry ⇒ Integer (readonly)
Returns the value of attribute retry.
190 191 192 |
# File 'sig/types.rbs', line 190 def retry @retry end |