Class: ContextDev::Models::BatchSubmitParams::Input::Crawl::Data::HTML::Source::Sitemap::Controls

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

Overview

See Also:

  • ContextDev::Models::BatchSubmitParams::Input::Crawl::Data::HTML::Source::Sitemap#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

#initializeControls

Returns a new instance of Controls.

Parameters:

  • max_urls: (Integer)
  • regex: (String)


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

def initialize: (?max_urls: Integer, ?regex: String) -> void

Instance Attribute Details

#max_urlsInteger?

Maximum pages to fetch. Unused reserved credits are refunded. Maximum 25000.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


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

optional :max_urls, Integer, api_name: :maxUrls

#regexString?

RE2 pattern; only sitemap URLs matching it are scraped.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :regex, String

Instance Method Details

#to_hash{ max_urls: Integer, regex: String }

Returns:

  • ({ max_urls: Integer, regex: String })


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

def to_hash: -> { max_urls: Integer, regex: String }