Class: ContextDev::Models::BatchGetResultsResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ContextDev::Models::BatchGetResultsResponse
- Defined in:
- lib/context_dev/models/batch_get_results_response.rb,
sig/context_dev/models/batch_get_results_response.rbs
Overview
Defined Under Namespace
Modules: Data Classes: KeyMetadata
Instance Attribute Summary collapse
-
#data ⇒ Array<ContextDev::Models::BatchGetResultsResponse::Data::Ok, ContextDev::Models::BatchGetResultsResponse::Data::Error>?
Result records on this page.
-
#has_more ⇒ Boolean?
Whether another page is available.
-
#key_metadata ⇒ ContextDev::Models::BatchGetResultsResponse::KeyMetadata?
Metadata about the API key used for the request.
-
#next_cursor ⇒ String?
Cursor for the next page.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(error_code:, message:, url:, item_id: nil, meta: nil, status: :error) ⇒ Object
constructor
A page the batch could not fetch.
- #to_hash ⇒ {
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(error_code:, message:, url:, item_id: nil, meta: nil, status: :error) ⇒ Object
A page the batch could not fetch.
|
|
# File 'lib/context_dev/models/batch_get_results_response.rb', line 33
|
Instance Attribute Details
#data ⇒ Array<ContextDev::Models::BatchGetResultsResponse::Data::Ok, ContextDev::Models::BatchGetResultsResponse::Data::Error>?
Result records on this page.
11 12 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 11 optional :data, -> { ContextDev::Internal::Type::ArrayOf[union: ContextDev::Models::BatchGetResultsResponse::Data] } |
#has_more ⇒ Boolean?
Whether another page is available.
18 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 18 optional :has_more, ContextDev::Internal::Type::Boolean |
#key_metadata ⇒ ContextDev::Models::BatchGetResultsResponse::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.
25 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 25 optional :key_metadata, -> { ContextDev::Models::BatchGetResultsResponse::KeyMetadata } |
#next_cursor ⇒ String?
Cursor for the next page.
31 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 31 optional :next_cursor, String, nil?: true |
Class Method Details
.variants ⇒ Array(ContextDev::Models::BatchGetResultsResponse::Data::Ok, ContextDev::Models::BatchGetResultsResponse::Data::Error)
|
|
# File 'lib/context_dev/models/batch_get_results_response.rb', line 435
|
Instance Method Details
#to_hash ⇒ {
37 |
# File 'sig/context_dev/models/batch_get_results_response.rbs', line 37
def to_hash: -> {
|