Class: GSA::UIDExtractor

Inherits:
Object
  • Object
show all
Defined in:
lib/gsa/uid_extractor.rb

Class Method Summary collapse

Class Method Details

.extract(search_results, uid) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/gsa/uid_extractor.rb', line 3

def self.extract(search_results, uid)
  uids = []
  search_results.map do |search_result|
    search_result[:metatags].map {|m| uids << m[:meta_value] if m[:meta_name] == uid }
  end
  uids
end