Class: HTTPX::Plugins::ServerSentEvents::Message
- Inherits:
-
Object
- Object
- HTTPX::Plugins::ServerSentEvents::Message
- Defined in:
- sig/plugins/server_sent_events.rbs
Instance Attribute Summary collapse
-
#data ⇒ String
readonly
Returns the value of attribute data.
-
#event ⇒ _ToS?
readonly
Returns the value of attribute event.
-
#id ⇒ _ToS?
readonly
Returns the value of attribute id.
-
#retry_after ⇒ Integer?
readonly
Returns the value of attribute retry_after.
Instance Method Summary collapse
-
#initialize ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize ⇒ Message
Returns a new instance of Message.
14 |
# File 'sig/plugins/server_sent_events.rbs', line 14
def initialize: (data: String, ?event: _ToS?, ?id: _ToS?, ?retry_after: Integer?) -> void
|
Instance Attribute Details
#data ⇒ String (readonly)
Returns the value of attribute data.
9 10 11 |
# File 'sig/plugins/server_sent_events.rbs', line 9 def data @data end |
#event ⇒ _ToS? (readonly)
Returns the value of attribute event.
11 12 13 |
# File 'sig/plugins/server_sent_events.rbs', line 11 def event @event end |
#id ⇒ _ToS? (readonly)
Returns the value of attribute id.
10 11 12 |
# File 'sig/plugins/server_sent_events.rbs', line 10 def id @id end |
#retry_after ⇒ Integer? (readonly)
Returns the value of attribute retry_after.
12 13 14 |
# File 'sig/plugins/server_sent_events.rbs', line 12 def retry_after @retry_after end |