Class: ContextDev::Models::WebWebScrapeImagesParams::Enrichment
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ContextDev::Models::WebWebScrapeImagesParams::Enrichment
- Defined in:
- lib/context_dev/models/web_web_scrape_images_params.rb
Instance Attribute Summary collapse
-
#classification ⇒ Boolean?
Classify each image by visual asset type.
-
#hosted_url ⇒ Boolean?
Host materializable images on the Brand.dev CDN and return their URL and MIME type.
-
#max_time_per_ms ⇒ Integer?
Per-image enrichment timeout in milliseconds.
-
#resolution ⇒ Boolean?
Measure image width and height when possible.
Instance Method Summary collapse
-
#initialize(classification: nil, hosted_url: nil, max_time_per_ms: nil, resolution: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Enrichment for more details.
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.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/context_dev/models/web_web_scrape_images_params.rb', line 42 class Enrichment < ContextDev::Internal::Type::BaseModel # @!attribute classification # Classify each image by visual asset type. # # @return [Boolean, nil] optional :classification, ContextDev::Internal::Type::Boolean # @!attribute hosted_url # Host materializable images on the Brand.dev CDN and return their URL and MIME # type. # # @return [Boolean, nil] optional :hosted_url, ContextDev::Internal::Type::Boolean, api_name: :hostedUrl # @!attribute max_time_per_ms # Per-image enrichment timeout in milliseconds. Default: 6000. Maximum: 60000. # # @return [Integer, nil] optional :max_time_per_ms, Integer, api_name: :maxTimePerMs # @!attribute resolution # Measure image width and height when possible. # # @return [Boolean, nil] optional :resolution, ContextDev::Internal::Type::Boolean # @!method initialize(classification: nil, hosted_url: nil, max_time_per_ms: nil, resolution: nil) # 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[resolution]=true. # # @param classification [Boolean] Classify each image by visual asset type. # # @param hosted_url [Boolean] Host materializable images on the Brand.dev CDN and return their URL and MIME ty # # @param max_time_per_ms [Integer] Per-image enrichment timeout in milliseconds. Default: 6000. Maximum: 60000. # # @param resolution [Boolean] Measure image width and height when possible. end |
Instance Attribute Details
#classification ⇒ Boolean?
Classify each image by visual asset type.
47 |
# File 'lib/context_dev/models/web_web_scrape_images_params.rb', line 47 optional :classification, ContextDev::Internal::Type::Boolean |
#hosted_url ⇒ Boolean?
Host materializable images on the Brand.dev CDN and return their URL and MIME type.
54 |
# File 'lib/context_dev/models/web_web_scrape_images_params.rb', line 54 optional :hosted_url, ContextDev::Internal::Type::Boolean, api_name: :hostedUrl |
#max_time_per_ms ⇒ Integer?
Per-image enrichment timeout in milliseconds. Default: 6000. Maximum: 60000.
60 |
# File 'lib/context_dev/models/web_web_scrape_images_params.rb', line 60 optional :max_time_per_ms, Integer, api_name: :maxTimePerMs |
#resolution ⇒ Boolean?
Measure image width and height when possible.
66 |
# File 'lib/context_dev/models/web_web_scrape_images_params.rb', line 66 optional :resolution, ContextDev::Internal::Type::Boolean |