Class: Scrapio::Resources::Search
- Inherits:
-
Object
- Object
- Scrapio::Resources::Search
- Defined in:
- lib/scrapio/resources/search.rb
Overview
POST /v1/search -- a multi-provider search workflow (currently resolves through Google, requires a Pro plan or higher). Untyped request/response since the workflow orchestrator's payload is more flexible than a fixed schema.
Instance Method Summary collapse
- #execute(request) ⇒ Object
-
#initialize(http) ⇒ Search
constructor
A new instance of Search.
Constructor Details
#initialize(http) ⇒ Search
Returns a new instance of Search.
8 |
# File 'lib/scrapio/resources/search.rb', line 8 def initialize(http) = @http = http |
Instance Method Details
#execute(request) ⇒ Object
10 11 12 |
# File 'lib/scrapio/resources/search.rb', line 10 def execute(request) @http.post("/v1/search", request) end |