Class: ContextDev::Models::BatchGetResultsResponse::Data::Error

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

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



357
# File 'sig/context_dev/models/batch_get_results_response.rbs', line 357

def initialize: (

Instance Attribute Details

#error_codeString

Why the page failed.

Parameters:

  • value (String)

Returns:

  • (String)


387
# File 'lib/context_dev/models/batch_get_results_response.rb', line 387

required :error_code, String

#item_idString?

Caller-supplied identifier echoed from submission.

Parameters:

  • (String)

Returns:

  • (String, nil)


411
# File 'lib/context_dev/models/batch_get_results_response.rb', line 411

optional :item_id, String, api_name: :itemId

#messageString

Human-readable failure detail.

Parameters:

  • value (String)

Returns:

  • (String)


393
# File 'lib/context_dev/models/batch_get_results_response.rb', line 393

required :message, String

#metaHash{Symbol=>Object}?

Caller-supplied metadata echoed from submission.

Parameters:

  • (::Hash[Symbol, top])

Returns:

  • (Hash{Symbol=>Object}, nil)


417
# File 'lib/context_dev/models/batch_get_results_response.rb', line 417

optional :meta, ContextDev::Internal::Type::HashOf[ContextDev::Internal::Type::Unknown]

#statusSymbol, :error

The page could not be scraped.

Parameters:

  • value (:error)

Returns:

  • (Symbol, :error)


399
# File 'lib/context_dev/models/batch_get_results_response.rb', line 399

required :status, const: :error

#urlString

URL as submitted, or as discovered by the crawl.

Parameters:

  • value (String)

Returns:

  • (String)


405
# File 'lib/context_dev/models/batch_get_results_response.rb', line 405

required :url, String

Instance Method Details

#to_hash{

Returns:

  • ({)


366
# File 'sig/context_dev/models/batch_get_results_response.rbs', line 366

def to_hash: -> {