Class: Firecrawl::BatchScrapeOptions
- Inherits:
-
Object
- Object
- Firecrawl::BatchScrapeOptions
- Includes:
- DynamicSchema::Definable, Helpers
- Defined in:
- lib/firecrawl/batch_scrape_options.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = nil, api_options: nil) ⇒ BatchScrapeOptions
constructor
A new instance of BatchScrapeOptions.
- #to_h ⇒ Object
Methods included from Helpers
Constructor Details
#initialize(options = nil, api_options: nil) ⇒ BatchScrapeOptions
Returns a new instance of BatchScrapeOptions.
57 58 59 60 |
# File 'lib/firecrawl/batch_scrape_options.rb', line 57 def initialize( = nil, api_options: nil ) @options = self.class.builder.build( || {} ) @options = .merge( @options ) if end |
Class Method Details
.build(options = nil, &block) ⇒ Object
49 50 51 |
# File 'lib/firecrawl/batch_scrape_options.rb', line 49 def self.build( = nil, &block ) new( api_options: builder.build( , &block ) ) end |
.build!(options = nil, &block) ⇒ Object
53 54 55 |
# File 'lib/firecrawl/batch_scrape_options.rb', line 53 def self.build!( = nil, &block ) new( api_options: builder.build!( , &block ) ) end |
Instance Method Details
#to_h ⇒ Object
62 63 64 |
# File 'lib/firecrawl/batch_scrape_options.rb', line 62 def to_h @options.to_h end |