Class: Firecrawl::BatchScrapeResult
- Inherits:
-
BatchScrapeResultSchema
- Object
- Firecrawl::BatchScrapeResult
- Extended by:
- Forwardable
- Defined in:
- lib/firecrawl/batch_scrape_result.rb
Instance Method Summary collapse
Instance Method Details
#merge_attributes(attributes) ⇒ Object
30 31 32 33 34 35 |
# File 'lib/firecrawl/batch_scrape_result.rb', line 30 def merge_attributes( attributes ) new_attributes = self.to_h.merge( attributes ) data = attributes[ :data ] new_attributes[ :data ] = self.data.concat( data ) if data self.class.new( attributes ) end |
#next_url ⇒ Object
28 |
# File 'lib/firecrawl/batch_scrape_result.rb', line 28 def next_url() = self.next || self.url |
#scraping? ⇒ Boolean
26 |
# File 'lib/firecrawl/batch_scrape_result.rb', line 26 def scraping?() = !!self.next_url |