Class: OpenAI::Models::ContainerRetrieveResponse::ExpiresAfter
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::ContainerRetrieveResponse::ExpiresAfter
- Defined in:
- lib/openai/models/container_retrieve_response.rb,
sig/openai/models/container_retrieve_response.rbs
Overview
Defined Under Namespace
Modules: Anchor
Instance Attribute Summary collapse
-
#anchor ⇒ OpenAI::Models::ContainerRetrieveResponse::ExpiresAfter::anchor?
The reference point for the expiration.
-
#minutes ⇒ Integer?
The number of minutes after the anchor before the container expires.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(anchor: nil, minutes: nil) ⇒ ExpiresAfter
constructor
A new instance of ExpiresAfter.
- #to_hash ⇒ { ?anchor: OpenAI::Models::ContainerRetrieveResponse::ExpiresAfter::anchor, ?minutes: Integer }
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(anchor: nil, minutes: nil) ⇒ ExpiresAfter
Returns a new instance of ExpiresAfter.
|
|
# File 'lib/openai/models/container_retrieve_response.rb', line 107
|
Instance Attribute Details
#anchor ⇒ OpenAI::Models::ContainerRetrieveResponse::ExpiresAfter::anchor?
The reference point for the expiration.
99 |
# File 'lib/openai/models/container_retrieve_response.rb', line 99 optional :anchor, enum: -> { OpenAI::Models::ContainerRetrieveResponse::ExpiresAfter::Anchor } |
#minutes ⇒ Integer?
The number of minutes after the anchor before the container expires.
105 |
# File 'lib/openai/models/container_retrieve_response.rb', line 105 optional :minutes, Integer |
Instance Method Details
#to_hash ⇒ { ?anchor: OpenAI::Models::ContainerRetrieveResponse::ExpiresAfter::anchor, ?minutes: Integer }
140 141 142 143 |
# File 'sig/openai/models/container_retrieve_response.rbs', line 140
def to_hash: -> {
?anchor: OpenAI::Models::ContainerRetrieveResponse::ExpiresAfter::anchor,
?minutes: Integer
}
|