Sha256: 6180ef4943d43650dac6d9323fa7052e68341673cbfffb15e3bee636f0bb4002

Contents?: true

Size: 460 Bytes

Versions: 2

Compression:

Stored size: 460 Bytes

Contents

# encoding: utf-8
module Laximo

  module Respond

    class GetWizard2 < Laximo::Respond::Base

      def parsing_result(str)

        str.xpath('//GetWizard2/row').inject([]) { |arr, node|

          h = node_to_hash(node) { |h1, n1|
            h1[:options] = nodes_to_hash(node.xpath('./options/row'))
          }

          arr << h unless h.empty?
          arr

        }

      end # parsing_result

    end # GetWizard2

  end # Respond

end # Laximo

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
laximo-0.8.1 lib/laximo/respond/oem/get_wizard2.rb
laximo-0.8 lib/laximo/respond/oem/get_wizard2.rb