Sha256: ac356512f2d8b071dc947d2b2ee49ce08c88ab39fcd81f03023b8a0fcb822ec2
Contents?: true
Size: 392 Bytes
Versions: 7
Compression:
Stored size: 392 Bytes
Contents
require 'yaml' module WhosDatedWho class BingClient API_KEY = ENV['BING_API_KEY'] || YAML.load_file( File.expand_path('~/.whos_dated_who.yml'))[:bing_api_key] def initialize(type='Web', num_results=10, api_key=API_KEY) @api_key = api_key @client = Bing.new(@api_key, num_results, type) end def search(query) @client.search(query) end end end
Version data entries
7 entries across 7 versions & 1 rubygems