Class: OpenAI::Models::Realtime::UnknownServerEvent

Inherits:
Object
  • Object
show all
Defined in:
sig/openai/helpers/realtime/unknown_server_event.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeUnknownServerEvent

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.

Parameters:

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


9
# File 'sig/openai/helpers/realtime/unknown_server_event.rbs', line 9

def initialize: (data: ::Hash[Symbol, untyped]) -> void

Instance Attribute Details

#data::Hash[Symbol, untyped] (readonly)

Returns the value of attribute data.

Returns:

  • (::Hash[Symbol, untyped])


6
7
8
# File 'sig/openai/helpers/realtime/unknown_server_event.rbs', line 6

def data
  @data
end

#typeSymbol (readonly)

Returns the value of attribute type.

Returns:

  • (Symbol)


5
6
7
# File 'sig/openai/helpers/realtime/unknown_server_event.rbs', line 5

def type
  @type
end

Instance Method Details

#to_h::Hash[Symbol, untyped]

Returns:

  • (::Hash[Symbol, untyped])


10
# File 'sig/openai/helpers/realtime/unknown_server_event.rbs', line 10

def to_h: -> ::Hash[Symbol, untyped]