Sha256: 5542212dbbb537e16e3b5af4d9533c02f14bc1020a583060ac4dcaf191876db4
Contents?: true
Size: 472 Bytes
Versions: 13
Compression:
Stored size: 472 Bytes
Contents
# encoding: utf-8 module Laximo module Respond class FindVehicleByWizard < Laximo::Respond::Base def parsing_result(str) str.xpath('//FindVehicleByWizard/row').inject([]) { |arr, node| h = node_to_hash(node) { |h1, n1| h1[:attributes] = nodes_to_hash(n1.xpath('./attribute')) } arr << h unless h.empty? } end # parsing_result end # FindVehicleByWizard end # Respond end # Laximo
Version data entries
13 entries across 13 versions & 1 rubygems