Sha256: ef3dbf19af3f73eb578ef00eb2f1963975357abc102e903f989c580cda82d2ed
Contents?: true
Size: 665 Bytes
Versions: 15
Compression:
Stored size: 665 Bytes
Contents
# encoding: utf-8 module Laximo module Respond class GetCatalogInfo < Laximo::Respond::Base def parsing_result(str) str.xpath('//GetCatalogInfo/row').inject([]) { |arr, node| h = node_to_hash(node) h[:features] = nodes_to_hash(node.xpath('./features/feature')) h[:operations] = node.xpath('./extensions/operations/opration').inject([]) { |arr1, n1| h1 = node_to_hash(n1) h1[:params] = nodes_to_hash(n1.xpath('./params/param')) arr1 << h1 } arr << h } end # parsing_result end # GetCatalogInfo end # Respond end # Laximo
Version data entries
15 entries across 15 versions & 1 rubygems