Class: BOSSMan::Search

Inherits:
Object
  • Object
show all
Defined in:
lib/bossman/search.rb

Constant Summary collapse

DEFAULT_COUNT =
10
DEFAULT_START =
0

Class Method Summary collapse

Class Method Details

.images(query, options = {}) ⇒ Object



13
14
15
16
17
# File 'lib/bossman/search.rb', line 13

def images(query, options = {})
  method = "images"
  options.merge!(return_options(options))        
  return REST.get(method, query, options)
end

.news(query, options = {}) ⇒ Object



19
20
21
22
23
# File 'lib/bossman/search.rb', line 19

def news(query, options = {})
  method = "news"
  options.merge!(return_options(options))
  return REST.get(method, query, options)
end

.spelling(query, options = {}) ⇒ Object



25
26
27
28
29
# File 'lib/bossman/search.rb', line 25

def spelling(query, options = {})
  method = "spelling"
  options.merge!(return_options(options))
  return REST.get(method, query, options)
end

.web(query, options = {}) ⇒ Object



7
8
9
10
11
# File 'lib/bossman/search.rb', line 7

def web(query, options = {})    
  method = "web"
  options.merge!(return_options(options))
  return REST.get(method, query, options)
end