Class: ContextDev::Models::WebWebScrapeImagesResponse::Image::Enrichment

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/context_dev/models/web_web_scrape_images_response.rb

Overview

See Also:

Defined Under Namespace

Modules: Type

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(height: nil, mimetype: nil, type: nil, url: nil, width: nil) ⇒ Object

Requested metadata for images that could be processed.

Parameters:

  • height (Integer) (defaults to: nil)

    Image height in pixels, when measured.

  • mimetype (String) (defaults to: nil)

    Detected MIME type, when hosted.

  • type (Symbol, ContextDev::Models::WebWebScrapeImagesResponse::Image::Enrichment::Type) (defaults to: nil)

    Visual asset category, when classified.

  • url (String) (defaults to: nil)

    Brand.dev CDN URL, when hosted.

  • width (Integer) (defaults to: nil)

    Image width in pixels, when measured.



# File 'lib/context_dev/models/web_web_scrape_images_response.rb', line 141

Instance Attribute Details

#heightInteger?

Image height in pixels, when measured.

Returns:

  • (Integer, nil)


115
# File 'lib/context_dev/models/web_web_scrape_images_response.rb', line 115

optional :height, Integer

#mimetypeString?

Detected MIME type, when hosted.

Returns:

  • (String, nil)


121
# File 'lib/context_dev/models/web_web_scrape_images_response.rb', line 121

optional :mimetype, String

#typeSymbol, ...

Visual asset category, when classified.



127
# File 'lib/context_dev/models/web_web_scrape_images_response.rb', line 127

optional :type, enum: -> { ContextDev::Models::WebWebScrapeImagesResponse::Image::Enrichment::Type }

#urlString?

Brand.dev CDN URL, when hosted.

Returns:

  • (String, nil)


133
# File 'lib/context_dev/models/web_web_scrape_images_response.rb', line 133

optional :url, String

#widthInteger?

Image width in pixels, when measured.

Returns:

  • (Integer, nil)


139
# File 'lib/context_dev/models/web_web_scrape_images_response.rb', line 139

optional :width, Integer