Class: ContextDev::Models::BatchGetResultsResponse::Data::Ok::Metadata
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ContextDev::Models::BatchGetResultsResponse::Data::Ok::Metadata
- Defined in:
- lib/context_dev/models/batch_get_results_response.rb,
sig/context_dev/models/batch_get_results_response.rbs
Overview
Defined Under Namespace
Modules: AdditionalMeta, OpenGraph, Twitter Classes: Alternate, Heading
Instance Attribute Summary collapse
-
#additional_meta ⇒ Hash{Symbol=>String, Array<String>}?
Additional non-social meta tags not promoted to top-level metadata fields.
-
#alternates ⇒ Array<ContextDev::Models::BatchGetResultsResponse::Data::Ok::Metadata::Alternate>?
Resolved alternate links from link rel=alternate tags.
-
#author ⇒ String?
Author metadata, when present.
-
#canonical_url ⇒ String?
Resolved canonical URL, when present.
-
#description ⇒ String?
Best description extracted from standard, Open Graph, or Twitter metadata.
-
#favicon ⇒ String?
Resolved favicon URL, when present.
-
#final_url ⇒ String
Final URL scraped after redirects or scraper fallback, when known.
-
#headings ⇒ Array<ContextDev::Models::BatchGetResultsResponse::Data::Ok::Metadata::Heading>?
Page headings (h1–h6) in document order, extracted from the unfiltered document.
-
#image ⇒ String?
Primary resolved preview image from Open Graph, Twitter, or image metadata.
-
#json_ld ⇒ Array<Hash{Symbol=>Object}>?
JSON-LD structured data blocks parsed from the page.
-
#keywords ⇒ Array<String>?
Keywords extracted from the page's keywords meta tag.
-
#language ⇒ String?
Language extracted from html lang or language meta tags.
-
#modified_time ⇒ String?
Modified timestamp/date from page metadata, when present.
-
#open_graph ⇒ Hash{Symbol=>String, Array<String>}?
Open Graph metadata with the og: prefix removed and keys camel-cased.
-
#published_time ⇒ String?
Published timestamp/date from page metadata, when present.
-
#robots ⇒ String?
Robots meta directive, when present.
-
#site_name ⇒ String?
Site or application name from page metadata.
-
#source_url ⇒ String
Original URL requested by the caller.
-
#title ⇒ String?
Best title extracted from the page.
-
#twitter ⇒ Hash{Symbol=>String, Array<String>}?
Twitter card metadata with the twitter: prefix removed and keys camel-cased.
Instance Method Summary collapse
- #initialize(level:, text:) ⇒ Object constructor
- #to_hash ⇒ {
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(level:, text:) ⇒ Object
|
|
# File 'lib/context_dev/models/batch_get_results_response.rb', line 365
|
Instance Attribute Details
#additional_meta ⇒ Hash{Symbol=>String, Array<String>}?
Additional non-social meta tags not promoted to top-level metadata fields.
165 166 167 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 165 optional :additional_meta, -> { ContextDev::Internal::Type::HashOf[union: ContextDev::Models::BatchGetResultsResponse::Data::Ok::Metadata::AdditionalMeta] }, api_name: :additionalMeta |
#alternates ⇒ Array<ContextDev::Models::BatchGetResultsResponse::Data::Ok::Metadata::Alternate>?
Resolved alternate links from link rel=alternate tags.
173 174 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 173 optional :alternates, -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BatchGetResultsResponse::Data::Ok::Metadata::Alternate] } |
#author ⇒ String?
Author metadata, when present.
180 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 180 optional :author, String |
#canonical_url ⇒ String?
Resolved canonical URL, when present.
186 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 186 optional :canonical_url, String, api_name: :canonicalUrl |
#description ⇒ String?
Best description extracted from standard, Open Graph, or Twitter metadata.
192 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 192 optional :description, String |
#favicon ⇒ String?
Resolved favicon URL, when present.
198 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 198 optional :favicon, String |
#final_url ⇒ String
Final URL scraped after redirects or scraper fallback, when known. Falls back to sourceUrl when unavailable.
153 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 153 required :final_url, String, api_name: :finalUrl |
#headings ⇒ Array<ContextDev::Models::BatchGetResultsResponse::Data::Ok::Metadata::Heading>?
Page headings (h1–h6) in document order, extracted from the unfiltered document. Capped at the first 500 headings. Omitted when the page has none.
205 206 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 205 optional :headings, -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BatchGetResultsResponse::Data::Ok::Metadata::Heading] } |
#image ⇒ String?
Primary resolved preview image from Open Graph, Twitter, or image metadata.
212 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 212 optional :image, String |
#json_ld ⇒ Array<Hash{Symbol=>Object}>?
JSON-LD structured data blocks parsed from the page.
218 219 220 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 218 optional :json_ld, ContextDev::Internal::Type::ArrayOf[ContextDev::Internal::Type::HashOf[ContextDev::Internal::Type::Unknown]], api_name: :jsonLd |
#keywords ⇒ Array<String>?
Keywords extracted from the page's keywords meta tag.
226 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 226 optional :keywords, ContextDev::Internal::Type::ArrayOf[String] |
#language ⇒ String?
Language extracted from html lang or language meta tags.
232 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 232 optional :language, String |
#modified_time ⇒ String?
Modified timestamp/date from page metadata, when present.
238 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 238 optional :modified_time, String, api_name: :modifiedTime |
#open_graph ⇒ Hash{Symbol=>String, Array<String>}?
Open Graph metadata with the og: prefix removed and keys camel-cased.
244 245 246 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 244 optional :open_graph, -> { ContextDev::Internal::Type::HashOf[union: ContextDev::Models::BatchGetResultsResponse::Data::Ok::Metadata::OpenGraph] }, api_name: :openGraph |
#published_time ⇒ String?
Published timestamp/date from page metadata, when present.
252 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 252 optional :published_time, String, api_name: :publishedTime |
#robots ⇒ String?
Robots meta directive, when present.
258 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 258 optional :robots, String |
#site_name ⇒ String?
Site or application name from page metadata.
264 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 264 optional :site_name, String, api_name: :siteName |
#source_url ⇒ String
Original URL requested by the caller.
159 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 159 required :source_url, String, api_name: :sourceUrl |
#title ⇒ String?
Best title extracted from the page.
270 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 270 optional :title, String |
#twitter ⇒ Hash{Symbol=>String, Array<String>}?
Twitter card metadata with the twitter: prefix removed and keys camel-cased.
276 277 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 276 optional :twitter, -> { ContextDev::Internal::Type::HashOf[union: ContextDev::Models::BatchGetResultsResponse::Data::Ok::Metadata::Twitter] } |
Instance Method Details
#to_hash ⇒ {
258 |
# File 'sig/context_dev/models/batch_get_results_response.rbs', line 258
def to_hash: -> {
|