Class: Scrapio::Resources::FastSearch
- Inherits:
-
Object
- Object
- Scrapio::Resources::FastSearch
- Defined in:
- lib/scrapio/resources/fast_search.rb
Instance Method Summary collapse
-
#initialize(http) ⇒ FastSearch
constructor
A new instance of FastSearch.
- #search(search, country_code: nil, language: nil, page: nil) ⇒ Object
Constructor Details
#initialize(http) ⇒ FastSearch
Returns a new instance of FastSearch.
4 |
# File 'lib/scrapio/resources/fast_search.rb', line 4 def initialize(http) = @http = http |
Instance Method Details
#search(search, country_code: nil, language: nil, page: nil) ⇒ Object
6 7 8 |
# File 'lib/scrapio/resources/fast_search.rb', line 6 def search(search, country_code: nil, language: nil, page: nil) @http.get("/v1/fast-search", { search: search, country_code: country_code, language: language, page: page }) end |