Class: ContextDev::Models::BatchListResponse::Data::Progress

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::Models::BatchListResponse::Data#progress

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

#initializeObject



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

def initialize: (

Instance Attribute Details

#failedInteger

Pages that could not be scraped.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


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

required :failed, Integer

#pendingInteger

Reserved pages not yet attempted. A cancelled batch keeps reporting the URLs it never reached; a crawl whose input.reserved_is_ceiling is true reports 0 once final, because its unspent budget was never real pages.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


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

required :pending, Integer

#succeededInteger

Pages scraped successfully.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


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

required :succeeded, Integer

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {