class EbaySearch
Ebay Search Result for Ruby powered by SerpApi
Search API Usage
“`ruby parameter = {
_nkw: "query", api_key: "Your SERP API Key"
}
search = EbaySearch.new(parameter)
search.params = “ebay.com”
html_results = search.get_html hash_results = search.get_hash json_results = search.get_json
“`
Public Class Methods
new(params = {})
click to toggle source
Calls superclass method
SerpApiSearch::new
# File lib/search/ebay_search.rb, line 26 def initialize(params = {}) super(params, EBAY_ENGINE) check_params([:_nkw, :engine]) end
Public Instance Methods
get_location()
click to toggle source
# File lib/search/ebay_search.rb, line 31 def get_location raise 'location is not supported by ' + EBAY_ENGINE end