Class: ContextDev::Models::BatchSubmitParams::Input::Crawl

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

Defined Under Namespace

Modules: Data

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(data:, mode: :crawl) ⇒ Object

Crawl pages starting from a URL or from a domain's sitemap.

Parameters:



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

Instance Attribute Details

#dataContextDev::Models::BatchSubmitParams::Input::Crawl::Data::Markdown, ContextDev::Models::BatchSubmitParams::Input::Crawl::Data::HTML

Crawl source and output format.

Parameters:

  • value (ContextDev::Models::BatchSubmitParams::Input::Crawl::data)

Returns:



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

required :data, union: -> { ContextDev::BatchSubmitParams::Input::Crawl::Data }

#modeSymbol, :crawl

Discover and scrape pages from data.source.

Parameters:

  • value (:crawl)

Returns:

  • (Symbol, :crawl)


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

required :mode, const: :crawl

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {