Class: ContextDev::Models::BatchGetResultsResponse::Data::Ok::Metadata::Heading
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ContextDev::Models::BatchGetResultsResponse::Data::Ok::Metadata::Heading
- Defined in:
- lib/context_dev/models/batch_get_results_response.rb,
sig/context_dev/models/batch_get_results_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.
331 |
# File 'sig/context_dev/models/batch_get_results_response.rbs', line 331
def initialize: (level: Integer, text: String) -> void
|
Instance Attribute Details
#level ⇒ Integer
Heading level, 1–6 (from h1–h6).
380 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 380 required :level, Integer |
#text ⇒ String
Heading text with whitespace collapsed, truncated to 1000 characters.
386 |
# File 'lib/context_dev/models/batch_get_results_response.rb', line 386 required :text, String |
Instance Method Details
#to_hash ⇒ { level: Integer, text: String }
333 |
# File 'sig/context_dev/models/batch_get_results_response.rbs', line 333
def to_hash: -> { level: Integer, text: String }
|