Class: ContextDev::Models::BatchListResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ContextDev::Models::BatchListResponse
- Defined in:
- lib/context_dev/models/batch_list_response.rb,
sig/context_dev/models/batch_list_response.rbs
Overview
Defined Under Namespace
Classes: Data, KeyMetadata
Instance Attribute Summary collapse
-
#data ⇒ Array<ContextDev::Models::BatchListResponse::Data>?
Batches on this page.
-
#has_more ⇒ Boolean?
Whether another page is available.
-
#key_metadata ⇒ ContextDev::Models::BatchListResponse::KeyMetadata?
Metadata about the API key used for the request.
-
#next_cursor ⇒ String?
Cursor for the next page.
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
#initialize(completed_at:, created_at:, started_at:) ⇒ Object
|
|
# File 'lib/context_dev/models/batch_list_response.rb', line 346
|
Instance Attribute Details
#data ⇒ Array<ContextDev::Models::BatchListResponse::Data>?
Batches on this page.
11 |
# File 'lib/context_dev/models/batch_list_response.rb', line 11 optional :data, -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BatchListResponse::Data] } |
#has_more ⇒ Boolean?
Whether another page is available.
17 |
# File 'lib/context_dev/models/batch_list_response.rb', line 17 optional :has_more, ContextDev::Internal::Type::Boolean |
#key_metadata ⇒ ContextDev::Models::BatchListResponse::KeyMetadata?
Metadata about the API key used for the request. Included in every response whenever a valid API key is provided, even when the response status is not 200.
24 |
# File 'lib/context_dev/models/batch_list_response.rb', line 24 optional :key_metadata, -> { ContextDev::Models::BatchListResponse::KeyMetadata } |
#next_cursor ⇒ String?
Cursor for the next page.
30 |
# File 'lib/context_dev/models/batch_list_response.rb', line 30 optional :next_cursor, String, nil?: true |
Instance Method Details
#to_hash ⇒ {
37 |
# File 'sig/context_dev/models/batch_list_response.rbs', line 37
def to_hash: -> {
|