Class: ContextDev::Models::WebWebScrapeImagesParams::Enrichment

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

Defined Under Namespace

Modules: Classification, HostedURL, Resolution

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(classification: nil, hosted_url: nil, max_time_per_ms: nil, resolution: nil) ⇒ Object

Some parameter documentations has been truncated, see ContextDev::Models::WebWebScrapeImagesParams::Enrichment for more details.

Optional per-image processing, sent as deep-object query params such as enrichment=true.

Parameters:



# File 'lib/context_dev/models/web_web_scrape_images_params.rb', line 215

Instance Attribute Details

#classificationBoolean, ...

Classify each image by visual asset type.



192
# File 'lib/context_dev/models/web_web_scrape_images_params.rb', line 192

optional :classification, union: -> { ContextDev::WebWebScrapeImagesParams::Enrichment::Classification }

#hosted_urlBoolean, ...

Host materializable images on the Brand.dev CDN and return their URL and MIME type.



199
200
201
# File 'lib/context_dev/models/web_web_scrape_images_params.rb', line 199

optional :hosted_url,
union: -> { ContextDev::WebWebScrapeImagesParams::Enrichment::HostedURL },
api_name: :hostedUrl

#max_time_per_msInteger?

Per-image enrichment timeout in milliseconds. Default: 30000. Maximum: 60000.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


207
# File 'lib/context_dev/models/web_web_scrape_images_params.rb', line 207

optional :max_time_per_ms, Integer, api_name: :maxTimePerMs

#resolutionBoolean, ...

Measure image width and height when possible.



213
# File 'lib/context_dev/models/web_web_scrape_images_params.rb', line 213

optional :resolution, union: -> { ContextDev::WebWebScrapeImagesParams::Enrichment::Resolution }

Instance Method Details

#to_hash{

Returns:

  • ({)


158
# File 'sig/context_dev/models/web_web_scrape_images_params.rbs', line 158

def to_hash: -> {