Class: OpenAI::Models::Realtime::RealtimeResponseStatus::Error

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/realtime/realtime_response_status.rb,
sig/openai/models/realtime/realtime_response_status.rbs

Overview

See Also:

  • OpenAI::Models::Realtime::RealtimeResponseStatus#error

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, fields, hash, #hash, inherited, #inspect, inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize ⇒ Error

Returns a new instance of Error.

Parameters:

  • code —

    Error code, if any.

  • message —

    A human-readable error message.

  • type —

    The type of error.

  • code: (String)
  • message: (String)
  • type: (String)


99
100
101
102
103
# File 'sig/openai/models/realtime/realtime_response_status.rbs', line 99

def initialize: (
  ?code: String,
  ?message: String,
  ?type: String
) -> void

Instance Attribute Details

#code ⇒ String?

Error code, if any.

Returns:

  • (String, nil)


55
# File 'lib/openai/models/realtime/realtime_response_status.rb', line 55

optional :code, String

#message ⇒ String?

A human-readable error message.

Returns:

  • (String, nil)


61
# File 'lib/openai/models/realtime/realtime_response_status.rb', line 61

optional :message, String

#type ⇒ String?

The type of error.

Returns:

  • (String, nil)


67
# File 'lib/openai/models/realtime/realtime_response_status.rb', line 67

optional :type, String

Instance Method Details

#to_hash ⇒ { ?code: String, ?message: String, ?type: String }

Returns:

  • ({ ?code: String, ?message: String, ?type: String })


105
# File 'sig/openai/models/realtime/realtime_response_status.rbs', line 105

def to_hash: -> { ?code: String, ?message: String, ?type: String }