Sha256: b41e89c6f6c1085b6f4be5770c84d05247bd00d04939f3abb53a3a6d9a970b13
Contents?: true
Size: 456 Bytes
Versions: 13
Compression:
Stored size: 456 Bytes
Contents
# encoding: utf-8 module Laximo module Respond class GetFilterByUnit < Laximo::Respond::Base def parsing_result(str) str.xpath('//GetFilterByUnit/row').inject([]) { |arr, node| h = node_to_hash(node) { |h1, n1| h1[:values] = nodes_to_hash(n1.xpath('./values/row')) } arr < h unless h.empty? } end # parsing_result end # GetFilterByUnit end # Respond end # Laximo
Version data entries
13 entries across 13 versions & 1 rubygems