Sha256: db638bb8c4d769cd4432e829e7c871e7bd1c17d1ba5e78fab48079ba940eaa22
Contents?: true
Size: 478 Bytes
Versions: 2
Compression:
Stored size: 478 Bytes
Contents
# encoding: utf-8 module Laximo module Respond class ListDetailByUnit < Laximo::Respond::Base def parsing_result(str) str.xpath('//ListDetailsByUnit/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 # ListDetailByUnit end # Respond end # Laximo
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
laximo-0.8.1 | lib/laximo/respond/oem/list_detail_by_unit.rb |
laximo-0.8 | lib/laximo/respond/oem/list_detail_by_unit.rb |