Sha256: 96bb18e658ea83e46981730a49888bb83c8d6ced0b8f54efebd9b181a683eb78
Contents?: true
Size: 446 Bytes
Versions: 13
Compression:
Stored size: 446 Bytes
Contents
# encoding: utf-8 module Laximo module Respond class GetWizard2 < Laximo::Respond::Base def 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? } end # parsing_result end # GetWizard2 end # Respond end # Laximo
Version data entries
13 entries across 13 versions & 1 rubygems