Class: OpenAI::Models::Realtime::RateLimitsUpdatedEvent

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

Defined Under Namespace

Classes: RateLimit

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_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

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

Constructor Details

#initializeObject



18
# File 'sig/openai/models/realtime/rate_limits_updated_event.rbs', line 18

def initialize: (

Instance Attribute Details

#event_idString

The unique ID of the server event.

Parameters:

  • value (String)

Returns:

  • (String)


11
# File 'lib/openai/models/realtime/rate_limits_updated_event.rb', line 11

required :event_id, String

#rate_limitsArray<OpenAI::Models::Realtime::RateLimitsUpdatedEvent::RateLimit>

List of rate limit information.

Parameters:

  • value (::Array[OpenAI::Realtime::RateLimitsUpdatedEvent::RateLimit])

Returns:



17
18
19
20
# File 'lib/openai/models/realtime/rate_limits_updated_event.rb', line 17

required(
  :rate_limits,
  -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Realtime::RateLimitsUpdatedEvent::RateLimit] }
)

#typeSymbol, :"rate_limits.updated"

The event type, must be rate_limits.updated.

Parameters:

Returns:



26
# File 'lib/openai/models/realtime/rate_limits_updated_event.rb', line 26

required :type, const: :"rate_limits.updated"

Instance Method Details

#to_hash{

Returns:

  • ({)


24
# File 'sig/openai/models/realtime/rate_limits_updated_event.rbs', line 24

def to_hash: -> {