Sha256: 4c2a5d6a73f31c8bea8d7016a061857515eff7e73f331b738ef7c76ce320d40d
Contents?: true
Size: 534 Bytes
Versions: 2
Compression:
Stored size: 534 Bytes
Contents
module Binged # A client which encapsulates the Bing API class Client attr_accessor :api_key # @param [Hash] options the options to create a client with. # @option options [String] :api_key The Bing API key used to make all API calls. def initialize(options = {}) @api_key = options[:api_key] || Binged.api_key end # Create a web search through Bing # # @param [String] query The search term to be sent to Bing def web(query='') Search::Web.new(self,query) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
binged-0.1.1 | lib/binged/client.rb |
binged-0.1.0 | lib/binged/client.rb |