Class: ContextDev::Models::BatchSubmitParams::Input::Crawl::Data::HTML::Source::StartURL

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

Classes: Controls

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(url:, controls: nil, type: :start_url) ⇒ Object

Discover pages by following links from one URL.

Parameters:



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

Instance Attribute Details

#controlsContextDev::Models::BatchSubmitParams::Input::Crawl::Data::HTML::Source::StartURL::Controls?

Limits and filters for page discovery.



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

optional :controls,
-> { ContextDev::BatchSubmitParams::Input::Crawl::Data::HTML::Source::StartURL::Controls }

#typeSymbol, :start_url

Start from one page.

Parameters:

  • value (:start_url)

Returns:

  • (Symbol, :start_url)


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

required :type, const: :start_url

#urlString

Page where crawling begins. A URL without a scheme is read as https://.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :url, String

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {