Class: ContextDev::Models::WebWebScrapeHTMLResponse::Metadata::Heading
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ContextDev::Models::WebWebScrapeHTMLResponse::Metadata::Heading
- Defined in:
- lib/context_dev/models/web_web_scrape_html_response.rb,
sig/context_dev/models/web_web_scrape_html_response.rbs
Instance Attribute Summary collapse
-
#level ⇒ Integer
Heading level, 1–6 (from h1–h6).
-
#text ⇒ String
Heading text with whitespace collapsed, truncated to 1000 characters.
Instance Method Summary collapse
-
#initialize ⇒ Heading
constructor
A new instance of Heading.
- #to_hash ⇒ { level: Integer, text: String }
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 ⇒ Heading
Returns a new instance of Heading.
273 |
# File 'sig/context_dev/models/web_web_scrape_html_response.rbs', line 273
def initialize: (level: Integer, text: String) -> void
|
Instance Attribute Details
#level ⇒ Integer
Heading level, 1–6 (from h1–h6).
317 |
# File 'lib/context_dev/models/web_web_scrape_html_response.rb', line 317 required :level, Integer |
#text ⇒ String
Heading text with whitespace collapsed, truncated to 1000 characters.
323 |
# File 'lib/context_dev/models/web_web_scrape_html_response.rb', line 323 required :text, String |
Instance Method Details
#to_hash ⇒ { level: Integer, text: String }
275 |
# File 'sig/context_dev/models/web_web_scrape_html_response.rbs', line 275
def to_hash: -> { level: Integer, text: String }
|