Sha256: 81e7f4d59e0b398d0fb7e476c66454c25e8a66e26c5d9dbd4cd1a5a865b970ff
Contents?: true
Size: 462 Bytes
Versions: 2
Compression:
Stored size: 462 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? arr } end # parsing_result end # GetUnitInfo 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_unit_info.rb |
laximo-0.8 | lib/laximo/respond/oem/get_unit_info.rb |