Module: ContextDev::Models::BatchSubmitParams::Input

Extended by:
Internal::Type::Union
Defined in:
lib/context_dev/models/batch_submit_params.rb,
sig/context_dev/models/batch_submit_params.rbs

Overview

Choose a URL list or a site crawl.

Defined Under Namespace

Classes: Crawl, Scrape

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Instance Method Details

#initialize(end_: nil, ocr: nil, should_parse: nil, start: nil) ⇒ Object

Some parameter documentations has been truncated, see ContextDev::Models::BatchSubmitParams::Input::Scrape::Data::HTML::Options::Pdf for more details.

PDF parsing controls. Use start/end to limit text extraction and embedded-image detection/OCR to an inclusive 1-based page range.

Parameters:

  • end_ (Integer) (defaults to: nil)

    Last 1-based PDF page to parse. When omitted, parsing ends at the last page. Mus

  • ocr (Boolean) (defaults to: nil)

    When true, OCR the selected PDF pages that have no usable text layer (scans), re

  • should_parse (Boolean) (defaults to: nil)

    When true, PDF URLs are fetched and parsed. When false, PDF URLs are skipped and

  • start (Integer) (defaults to: nil)

    First 1-based PDF page to parse. When omitted, parsing starts at the first page.



# File 'lib/context_dev/models/batch_submit_params.rb', line 946

#self?.variants::Array[ContextDev::Models::BatchSubmitParams::input]

Returns:

  • (::Array[ContextDev::Models::BatchSubmitParams::input])


2699
# File 'sig/context_dev/models/batch_submit_params.rbs', line 2699

def self?.variants: -> ::Array[ContextDev::Models::BatchSubmitParams::input]