Sha256: 6d590c73e8c8b9620a93ddabcd54067ed528a67a67f07476c5c338b45bb0c7f7

Contents?: true

Size: 486 Bytes

Versions: 2

Compression:

Stored size: 486 Bytes

Contents

# encoding: utf-8
module Laximo

  module Respond

    class ExecCustomOperation < Laximo::Respond::Base

      def parsing_result(str)

        str.xpath('//ExecCustomOperation/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 # parsing_result

    end # ExecCustomOperation

  end # Respond

end # Laximo

Version data entries

2 entries across 2 versions & 1 rubygems

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