Sha256: d19b57e9adea1197a4c33aac407df3aaf53a76da79e04ec32b0cd48018e8f345

Contents?: true

Size: 472 Bytes

Versions: 2

Compression:

Stored size: 472 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?
          arr

        }

      end

    end # FindVehicleByWizard2

  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_wizard2.rb
laximo-0.8 lib/laximo/respond/oem/find_vehicle_by_wizard2.rb