Class: BingSearch

Inherits:
SearchDataAPISearch show all
Defined in:
lib/searchdata_sdk/bing_search.rb

Overview

Bing Search Result powered by SearchData API Check code samples at examples/bing_demo.rb Docs: app.searchdata.io/documentation/bing-search

Constant Summary

Constants inherited from SearchDataAPISearch

SearchDataAPISearch::LOCATIONS_API, SearchDataAPISearch::MAIN_API, SearchDataAPISearch::MAIN_API_PATH

Instance Attribute Summary

Attributes inherited from SearchDataAPISearch

#params

Instance Method Summary collapse

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 = {}) ⇒ BingSearch

Returns a new instance of BingSearch.



9
10
11
12
# File 'lib/searchdata_sdk/bing_search.rb', line 9

def initialize(params = {})
  super(params, BING_ENGINE)
  check_params(%i[q engine])
end