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