Class: GSA::ReadableResults

Inherits:
Object
  • Object
show all
Extended by:
Injector
Defined in:
lib/gsa/readable_results.rb

Class Method Summary collapse

Methods included from Injector

inject, inject_a, inject_s

Class Method Details

.extract(search_results) ⇒ Object



5
6
7
# File 'lib/gsa/readable_results.rb', line 5

def self.extract(search_results)
  search_results[GSA::GOOGLE_SEARCH_PROTOCOL][GSA::RESULTS]
end

.parse_core(parsables) ⇒ Object



9
10
11
12
# File 'lib/gsa/readable_results.rb', line 9

def self.parse_core(parsables)
  parsables = [parsables] if parsables.is_a? Hash
  inject_a(parsables) {|parsable| yield(parsable) }
end