Class: OpenAI::Models::Beta::ChatKit::ChatKitThread::Status::Locked
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::ChatKit::ChatKitThread::Status::Locked
- Defined in:
- lib/openai/models/beta/chatkit/chatkit_thread.rb,
sig/openai/models/beta/chatkit/chatkit_thread.rbs
Instance Attribute Summary collapse
-
#reason ⇒ String?
Reason that the thread was locked.
-
#type ⇒ Symbol, :locked
Status discriminator that is always
locked.
Instance Method Summary collapse
-
#initialize ⇒ Locked
constructor
A new instance of Locked.
- #to_hash ⇒ { reason: String?, type: :locked }
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
#initialize ⇒ Locked
Returns a new instance of Locked.
73 |
# File 'sig/openai/models/beta/chatkit/chatkit_thread.rbs', line 73
def initialize: (reason: String?, ?type: :locked) -> void
|
Instance Attribute Details
#reason ⇒ String?
Reason that the thread was locked. Defaults to null when no reason is recorded.
99 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread.rb', line 99 required :reason, String, nil?: true |
#type ⇒ Symbol, :locked
Status discriminator that is always 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 }
75 |
# File 'sig/openai/models/beta/chatkit/chatkit_thread.rbs', line 75
def to_hash: -> { reason: String?, type: :locked }
|