Class: Firecrawl::Models::HighlightsFormat
- Inherits:
-
Object
- Object
- Firecrawl::Models::HighlightsFormat
- Defined in:
- lib/firecrawl/models/query_format.rb
Overview
Highlights format for extracting direct highlights from page content.
Instance Attribute Summary collapse
-
#query ⇒ Object
readonly
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(query:) ⇒ HighlightsFormat
constructor
A new instance of HighlightsFormat.
- #to_h ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(query:) ⇒ HighlightsFormat
Returns a new instance of HighlightsFormat.
29 30 31 |
# File 'lib/firecrawl/models/query_format.rb', line 29 def initialize(query:) @query = query end |
Instance Attribute Details
#query ⇒ Object (readonly)
Returns the value of attribute query.
27 28 29 |
# File 'lib/firecrawl/models/query_format.rb', line 27 def query @query end |
Instance Method Details
#to_h ⇒ Object
33 34 35 36 37 38 |
# File 'lib/firecrawl/models/query_format.rb', line 33 def to_h { "type" => "highlights", "query" => query, } end |
#type ⇒ Object
40 41 42 |
# File 'lib/firecrawl/models/query_format.rb', line 40 def type "highlights" end |