Class: GSA::ReadableResults
- Inherits:
-
Object
- Object
- GSA::ReadableResults
- Extended by:
- Injector
- Defined in:
- lib/gsa/readable_results.rb
Direct Known Subclasses
ReadableBuckets, ReadableFacets, ReadableMetatags, ReadableResultSets
Class Method Summary collapse
Methods included from Injector
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 |