module Facade

Public Instance Methods

beautify_search_results(search_results) click to toggle source
# File lib/facade.rb, line 34
def beautify_search_results(search_results)
  GSA::SearchConverter.convert(search_results)
end
check_base_uri() click to toggle source
# File lib/facade.rb, line 30
def check_base_uri
  raise GSA::URINotSetError, GSA::NO_URI_TEXT unless GSA.base_uri
end
feed(args) click to toggle source
# File lib/facade.rb, line 2
def feed(args)
  xml = records_to_xml(args)
  feed_to_gsa(xml, args[:datasource_name])
end
feed_to_gsa(xml_file, datasource_name) click to toggle source
# File lib/facade.rb, line 22
def feed_to_gsa(xml_file, datasource_name)
  if GSA.base_uri
    GSA::Feeder.feed(xml_file, datasource_name)
  else
    raise GSA::URINotSetError, GSA::NO_URI_TEXT
  end
end
records_to_xml(args) click to toggle source
# File lib/facade.rb, line 38
def records_to_xml(args)
  GSA::RecordsConverter.convert(args)
end
uids(pretty_search_results, uid) click to toggle source
# File lib/facade.rb, line 18
def uids(pretty_search_results, uid)
  GSA::UIDExtractor.extract(pretty_search_results, uid)
end