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