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