Sha256: 8cee35f916cec14f70c57c559208c4785fdb5db64dbfe38be480c47582171158
Contents?: true
Size: 477 Bytes
Versions: 2
Compression:
Stored size: 477 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? arr } end # parsing_result end # FindVehicleByVin end # Respond end # Laximo
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
laximo-0.8.1 | lib/laximo/respond/oem/find_vehicle_by_vin.rb |
laximo-0.8 | lib/laximo/respond/oem/find_vehicle_by_vin.rb |