Sha256: 605cffe8212df992f4d69dda1e8d103938f0ae7634896a1bee9cd3cc918d537b

Contents?: true

Size: 457 Bytes

Versions: 7

Compression:

Stored size: 457 Bytes

Contents

# encoding: utf-8
module Laximo

  module Respond

    class FindVehicleByWizard2 < Laximo::Respond::Base

      def parsing_result(str)

        str.xpath('//FindVehicleByWizard/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

    end # FindVehicleByWizard2

  end # Respond

end # Laximo

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
laximo-0.6.1 lib/laximo/respond/find_vehicle_by_wizard2.rb
laximo-0.6.0 lib/laximo/respond/find_vehicle_by_wizard2.rb
laximo-0.5.2 lib/laximo/respond/find_vehicle_by_wizard2.rb
laximo-0.5.1 lib/laximo/respond/find_vehicle_by_wizard2.rb
laximo-0.5.0 lib/laximo/respond/find_vehicle_by_wizard2.rb
laximo-0.4.2 lib/laximo/respond/find_vehicle_by_wizard2.rb
laximo-0.4.1 lib/laximo/respond/find_vehicle_by_wizard2.rb