Class: OpenAI::Models::Live::UnknownServerEvent

Inherits:
Object
  • Object
show all
Defined in:
sig/openai/helpers/live/websocket.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ UnknownServerEvent

Returns a new instance of UnknownServerEvent.

Parameters:

  • data: (::Hash[Symbol | String, untyped])


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.

Returns:

  • (::Hash[Symbol | String, untyped])


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.

Returns:

  • (Symbol)


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

Returns:

  • (String)


46
# File 'sig/openai/helpers/live/websocket.rbs', line 46

def inspect: -> String

#to_h ⇒ ::Hash[(Symbol | String), untyped]

Returns:

  • (::Hash[(Symbol | String), untyped])


45
# File 'sig/openai/helpers/live/websocket.rbs', line 45

def to_h: -> ::Hash[(Symbol | String), untyped]