class Bing

The Bing Class provides the ability to connect to the bing search api hosted on the windows azure marketplace. Before proceeding you will need an account key, which can be obtained by registering an accout at windows.microsoft.com/en-US/windows-live/sign-in-what-is-microsoft-account

Attributes

account_key[RW]
num_results[RW]
params[RW]
type[RW]

Public Class Methods

new(account_key, num_results, type, params = {}) click to toggle source

Create a new object of the bing class

>> bing_image = Bing.new('your_account_key_goes_here', 10, 'Image', {:Adult => 'Strict'}) 
=> #<Bing:0x9d9b9f4 @account_key="your_account_key", @num_results=10, @type="Image", @params={:Adult => 'Strict'}>

Arguments:

account_key: (String)
num_results: (Integer)
type:         (String)
params:       (Hash)
# File lib/searchbing.rb, line 17
def initialize(account_key, num_results, type, params = {})

        @account_key = account_key
        @num_results = num_results
        @type = type
        @params = params


end

Public Instance Methods