Class: OpenAI::Models::Responses::UnknownServerEvent
- Inherits:
-
Object
- Object
- OpenAI::Models::Responses::UnknownServerEvent
- Defined in:
- sig/openai/helpers/responses_websocket/unknown_server_event.rbs
Instance Attribute Summary collapse
-
#data ⇒ ::Hash[Symbol, top]
readonly
Returns the value of attribute data.
-
#stream_id ⇒ top
readonly
Returns the value of attribute stream_id.
-
#type ⇒ Symbol
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize ⇒ UnknownServerEvent
constructor
private
A new instance of UnknownServerEvent.
- #to_h ⇒ ::Hash[Symbol, top]
Constructor Details
#initialize ⇒ UnknownServerEvent
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of UnknownServerEvent.
6 |
# File 'sig/openai/helpers/responses_websocket/unknown_server_event.rbs', line 6
def initialize: (data: ::Hash[Symbol, top]) -> void
|
Instance Attribute Details
#data ⇒ ::Hash[Symbol, top] (readonly)
Returns the value of attribute data.
9 10 11 |
# File 'sig/openai/helpers/responses_websocket/unknown_server_event.rbs', line 9 def data @data end |
#stream_id ⇒ top (readonly)
Returns the value of attribute stream_id.
10 11 12 |
# File 'sig/openai/helpers/responses_websocket/unknown_server_event.rbs', line 10 def stream_id @stream_id end |
#type ⇒ Symbol (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'sig/openai/helpers/responses_websocket/unknown_server_event.rbs', line 8 def type @type end |
Instance Method Details
#to_h ⇒ ::Hash[Symbol, top]
11 |
# File 'sig/openai/helpers/responses_websocket/unknown_server_event.rbs', line 11
def to_h: -> ::Hash[Symbol, top]
|