Class: Firecrawl::Models::QuestionFormat
- Inherits:
-
Object
- Object
- Firecrawl::Models::QuestionFormat
- Defined in:
- lib/firecrawl/models/query_format.rb
Overview
Question format for asking a question about page content.
Instance Attribute Summary collapse
-
#question ⇒ Object
readonly
Returns the value of attribute question.
Instance Method Summary collapse
-
#initialize(question:) ⇒ QuestionFormat
constructor
A new instance of QuestionFormat.
- #to_h ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(question:) ⇒ QuestionFormat
Returns a new instance of QuestionFormat.
9 10 11 |
# File 'lib/firecrawl/models/query_format.rb', line 9 def initialize(question:) @question = question end |
Instance Attribute Details
#question ⇒ Object (readonly)
Returns the value of attribute question.
7 8 9 |
# File 'lib/firecrawl/models/query_format.rb', line 7 def question @question end |
Instance Method Details
#to_h ⇒ Object
13 14 15 16 17 18 |
# File 'lib/firecrawl/models/query_format.rb', line 13 def to_h { "type" => "question", "question" => question, } end |
#type ⇒ Object
20 21 22 |
# File 'lib/firecrawl/models/query_format.rb', line 20 def type "question" end |