Class: NPR::ResultParser

Inherits:
Object
  • Object
show all
Defined in:
lib/rubynpr/result_parser.rb

Instance Method Summary collapse

Instance Method Details

#parse(raw_results) ⇒ Object



6
7
8
9
# File 'lib/rubynpr/result_parser.rb', line 6

def parse(raw_results)
  h_raw_results = Hpricot.XML(raw_results) 
  result = transform_nprml(h_raw_results) if h_raw_results.search('nprml')
end