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