참고소스 수정본

This commit is contained in:
LASTA_DEV01\lasta
2026-05-12 19:40:31 +09:00
parent 0f34a451fc
commit 2e9204243d
8708 changed files with 3259488 additions and 869 deletions

View File

@@ -0,0 +1,23 @@
# frozen_string_literal: true
module Firecrawl
module Models
# Search results from the v2 search API.
class SearchData
attr_reader :web, :news, :images
def initialize(data)
@web = data["web"]
@news = data["news"]
@images = data["images"]
end
def to_s
web_count = web&.size || 0
news_count = news&.size || 0
image_count = images&.size || 0
"SearchData{web=#{web_count}, news=#{news_count}, images=#{image_count}}"
end
end
end
end