Class: Kenexa::JobDetailParser

Inherits:
Object
  • Object
show all
Defined in:
lib/kenexa/job_detail_parser.rb

Instance Method Summary collapse

Instance Method Details

#parse(doc) ⇒ Object



5
6
7
8
9
10
# File 'lib/kenexa/job_detail_parser.rb', line 5

def parse(doc)
  fields = doc.search(".Fieldlabel").map &:text
  values = doc.search(".TEXT").map &:text

  Hash[fields.zip(values)]
end