Class: GSA::ReadableMetatags

Inherits:
ReadableResults show all
Defined in:
lib/gsa/readable_results/readable_metatags.rb

Class Method Summary collapse

Methods inherited from ReadableResults

extract, parse_core

Methods included from Injector

#inject, #inject_a, #inject_s

Class Method Details

.convert(meta_pair) ⇒ Object



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

def self.convert(meta_pair)
  {
    :meta_name => meta_pair[GSA::META_NAME], 
    :meta_value => meta_pair[GSA::META_VALUE]
  }
end

.parse(metatags) ⇒ Object



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

def self.parse(metatags)
  parse_core(metatags) {|meta_pair| convert(meta_pair) }
end