Class: GoogleAutocompleteAPI
- Inherits:
-
SearchDataAPISearch
- Object
- SearchDataAPISearch
- GoogleAutocompleteAPI
- Defined in:
- lib/searchdata_sdk/google_search.rb
Overview
Google Autocomplete API Result powered by SearchData API Check code samples at examples/google_demo.ro Docs: app.searchdata.io/documentation/google-autocomplete-api
Constant Summary
Constants inherited from SearchDataAPISearch
SearchDataAPISearch::LOCATIONS_API, SearchDataAPISearch::MAIN_API, SearchDataAPISearch::MAIN_API_PATH
Instance Attribute Summary
Attributes inherited from SearchDataAPISearch
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ GoogleAutocompleteAPI
constructor
A new instance of GoogleAutocompleteAPI.
Methods inherited from SearchDataAPISearch
#api_key, api_key=, #check_params, #construct_url, #get_hash, #get_json, #get_location, #get_results, searchdata_api_key=
Constructor Details
#initialize(params = {}) ⇒ GoogleAutocompleteAPI
Returns a new instance of GoogleAutocompleteAPI.
39 40 41 42 |
# File 'lib/searchdata_sdk/google_search.rb', line 39 def initialize(params = {}) super(params, GOOGLE_AUTOCOMPLETE_ENGINE) check_params(%i[q engine]) end |