Sha256: b0acba5263c7421ac96d7073f47c87a3b2a9894c744d6a619a58190e412040cf
Contents?: true
Size: 448 Bytes
Versions: 13
Compression:
Stored size: 448 Bytes
Contents
# encoding: utf-8 module Laximo module Respond class GetUnitInfo < Laximo::Respond::Base def parsing_result(str) str.xpath('//GetUnitInfo/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 # parsing_result end # GetUnitInfo end # Respond end # Laximo
Version data entries
13 entries across 13 versions & 1 rubygems