Sha256: 41716f8ed6ef3e8ecd5f3ebff4018ed970aea762724cc8b99cd384a53f3e588a
Contents?: true
Size: 591 Bytes
Versions: 8
Compression:
Stored size: 591 Bytes
Contents
# encoding: utf-8 module Laximo module Respond class GetWizardNextStep2 < Laximo::Respond::Base 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 # parsing_result end # GetWizardNextStep2 end # Respond end # Laximo
Version data entries
8 entries across 8 versions & 1 rubygems