Module: BingSearchClient
- Defined in:
- lib/bing_search_client.rb,
lib/bing_search_client/news.rb,
lib/bing_search_client/client.rb,
lib/bing_search_client/result.rb,
lib/bing_search_client/version.rb
Overview
TODO implement client for Web, Image and Video search
Defined Under Namespace
Classes: BadResponse, Client, Configuration, News, Result
Constant Summary collapse
- VERSION =
"0.1.1"
Class Method Summary collapse
-
.config ⇒ Object
Return configuration parameters.
-
.configure {|@config ||= Configuration.new| ... } ⇒ Object
Class method to set up configuration parameters.
-
.reset_config ⇒ Object
Reset configuration parameters.
Class Method Details
.config ⇒ Object
Return configuration parameters
25 26 27 |
# File 'lib/bing_search_client.rb', line 25 def self.config @config end |
.configure {|@config ||= Configuration.new| ... } ⇒ Object
Class method to set up configuration parameters
16 17 18 |
# File 'lib/bing_search_client.rb', line 16 def self.configure(&block) yield @config ||= Configuration.new end |
.reset_config ⇒ Object
Reset configuration parameters
34 35 36 |
# File 'lib/bing_search_client.rb', line 34 def self.reset_config @config = nil end |