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