class Laximo::Respond::GetWizardNextStep2
Public Class Methods
parsing_result(str)
click to toggle source
# File lib/laximo/respond/oem/get_wizard_next_step2.rb, line 8 def self.parsing_result(str) str.xpath('//GetWizardNextStep2').inject([]) { |arr, node| h = {} h[:previous_step] = nodes_to_hash(node.xpath('./previousStep/row')) h[:currentStep] = node_to_hash(node.xpath('./currentStep')[0]) { |h1, n2| h1[:options] = nodes_to_hash(n2.xpath('./options/row')) } arr << h } end