Class: OpenAI::Models::Live::UnknownServerEvent
- Inherits:
-
Object
- Object
- OpenAI::Models::Live::UnknownServerEvent
- Defined in:
- sig/openai/helpers/live/websocket.rbs
Instance Attribute Summary collapse
-
#data ⇒ ::Hash[Symbol | String, untyped]
readonly
Returns the value of attribute data.
-
#type ⇒ Symbol
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize ⇒ UnknownServerEvent
constructor
A new instance of UnknownServerEvent.
- #inspect ⇒ String (also: #to_s)
- #to_h ⇒ ::Hash[(Symbol | String), untyped]
Constructor Details
#initialize ⇒ UnknownServerEvent
Returns a new instance of UnknownServerEvent.
44 |
# File 'sig/openai/helpers/live/websocket.rbs', line 44
def initialize: (data: ::Hash[Symbol | String, untyped]) -> void
|
Instance Attribute Details
#data ⇒ ::Hash[Symbol | String, untyped] (readonly)
Returns the value of attribute data.
43 44 45 |
# File 'sig/openai/helpers/live/websocket.rbs', line 43 def data @data end |
#type ⇒ Symbol (readonly)
Returns the value of attribute type.
42 43 44 |
# File 'sig/openai/helpers/live/websocket.rbs', line 42 def type @type end |
Instance Method Details
#inspect ⇒ String Also known as: to_s
46 |
# File 'sig/openai/helpers/live/websocket.rbs', line 46
def inspect: -> String
|
#to_h ⇒ ::Hash[(Symbol | String), untyped]
45 |
# File 'sig/openai/helpers/live/websocket.rbs', line 45
def to_h: -> ::Hash[(Symbol | String), untyped]
|