Class: RBing
Overview
> “1 furlong = 40 rods”
Defined Under Namespace
Classes: ResponseData
Constant Summary collapse
- BASE_OPTIONS =
[:version, :market, :adult, :query, :appid, :sources]
- QUERY_KEYWORDS =
[:site, :language, :contains, :filetype, :inanchor, :inbody, :intitle, :ip, :loc, :location, :prefer, :feed, :hasfeed, :url]
- SOURCES =
Source Types: <msdn.microsoft.com/en-us/library/dd250847.aspx>
%w(Ad Image InstantAnswer News Phonebook RelatedSearch Spell Web)
Instance Attribute Summary collapse
-
#instance_options ⇒ Object
Returns the value of attribute instance_options.
Instance Method Summary collapse
-
#search(source, query, options = {}) ⇒ Object
issues a search for
query
insource
.
Instance Attribute Details
#instance_options ⇒ Object
Returns the value of attribute instance_options.
80 81 82 |
# File 'lib/rbing.rb', line 80 def end |
Instance Method Details
#search(source, query, options = {}) ⇒ Object
issues a search for query
in source
112 113 114 115 |
# File 'lib/rbing.rb', line 112 def search(source, query, ={}) rsp = self.class.get('', (source, query, )) ResponseData.new(rsp['SearchResponse']) if rsp end |