Class: ContextDev::Models::BatchListResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/context_dev/models/batch_list_response.rb,
sig/context_dev/models/batch_list_response.rbs

Overview

See Also:

  • ContextDev::Resources::Batch#list

Defined Under Namespace

Classes: Data, KeyMetadata

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

#initialize(completed_at:, created_at:, started_at:) ⇒ Object

Parameters:

  • completed_at (String, nil)

    When processing finished. Null while active.

  • created_at (String)

    When the batch was created.

  • started_at (String, nil)

    When processing started. Null while queued.



# File 'lib/context_dev/models/batch_list_response.rb', line 346

Instance Attribute Details

#dataArray<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_moreBoolean?

Whether another page is available.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


17
# File 'lib/context_dev/models/batch_list_response.rb', line 17

optional :has_more, ContextDev::Internal::Type::Boolean

#key_metadataContextDev::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_cursorString?

Cursor for the next page.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


30
# File 'lib/context_dev/models/batch_list_response.rb', line 30

optional :next_cursor, String, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


37
# File 'sig/context_dev/models/batch_list_response.rbs', line 37

def to_hash: -> {