Class: OpenAI::Models::Beta::ChatKit::ChatKitThread::Status::Locked

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/chatkit/chatkit_thread.rb,
sig/openai/models/beta/chatkit/chatkit_thread.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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, #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

#initializeLocked

Returns a new instance of Locked.

Parameters:

  • reason: (String, nil)
  • type: (:locked)


73
# File 'sig/openai/models/beta/chatkit/chatkit_thread.rbs', line 73

def initialize: (reason: String?, ?type: :locked) -> void

Instance Attribute Details

#reasonString?

Reason that the thread was locked. Defaults to null when no reason is recorded.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


99
# File 'lib/openai/models/beta/chatkit/chatkit_thread.rb', line 99

required :reason, String, nil?: true

#typeSymbol, :locked

Status discriminator that is always locked.

Parameters:

  • value (:locked)

Returns:

  • (Symbol, :locked)


105
# File 'lib/openai/models/beta/chatkit/chatkit_thread.rb', line 105

required :type, const: :locked

Instance Method Details

#to_hash{ reason: String?, type: :locked }

Returns:

  • ({ reason: String?, type: :locked })


75
# File 'sig/openai/models/beta/chatkit/chatkit_thread.rbs', line 75

def to_hash: -> { reason: String?, type: :locked }