Sha256: 42e2f53e2a19c6decca2e8a33660cc08d8c2402375cbc5f90059a0ea55513c88
Contents?: true
Size: 443 Bytes
Versions: 13
Compression:
Stored size: 443 Bytes
Contents
# encoding: utf-8 module Laximo module Respond class GetWizard < Laximo::Respond::Base def parsing_result(str) str.xpath('//GetWizard/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 # GetWizard end # Respond end # Laximo
Version data entries
13 entries across 13 versions & 1 rubygems