Class: Scrapio::Resources::Google
- Inherits:
-
Object
- Object
- Scrapio::Resources::Google
- Defined in:
- lib/scrapio/resources/google.rb
Instance Method Summary collapse
-
#initialize(http) ⇒ Google
constructor
A new instance of Google.
- #search(search:, search_type: nil, country_code: nil, language: nil, device: nil, page: nil, date_range: nil, **opts) ⇒ Object
Constructor Details
#initialize(http) ⇒ Google
Returns a new instance of Google.
4 |
# File 'lib/scrapio/resources/google.rb', line 4 def initialize(http) = @http = http |
Instance Method Details
#search(search:, search_type: nil, country_code: nil, language: nil, device: nil, page: nil, date_range: nil, **opts) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/scrapio/resources/google.rb', line 6 def search(search:, search_type: nil, country_code: nil, language: nil, device: nil, page: nil, date_range: nil, **opts) @http.get("/v1/google/search", { search: search, search_type: search_type, country_code: country_code, language: language, device: device, page: page, date_range: date_range, }.merge(opts)) end |