class GSA::Searcher

Constants

FIELDS

Public Class Methods

clean_query(query) click to toggle source
# File lib/gsa/searcher.rb, line 32
def self.clean_query(query)
  query.tr(' ', '+')
end
parsed_json(xml) click to toggle source
# File lib/gsa/searcher.rb, line 36
def self.parsed_json(xml)
  Hash.from_xml(xml)
end
results_found?(search_results) click to toggle source
# File lib/gsa/searcher.rb, line 40
def self.results_found?(search_results)
  search_results[GSA::GOOGLE_SEARCH_PROTOCOL].has_key? GSA::RESULTS
end