class Laximo::Respond::GetWizard2
Public Class Methods
parsing_result(str)
click to toggle source
# File lib/laximo/respond/oem/get_wizard2.rb, line 8 def self.parsing_result(str) str.xpath('//GetWizard2/row').inject([]) { |arr, node| h = node_to_hash(node) { |h1, n1| h1[:options] = nodes_to_hash(node.xpath('./options/row')) } arr << h unless h.empty? arr } end