Sha256: d1ecc612721b5a4228251c6b5b2f3be18cc971af0a8d6792f3b574d2a4df5f3f
Contents?: true
Size: 404 Bytes
Versions: 1
Compression:
Stored size: 404 Bytes
Contents
require 'multi_xml' require 'hashie/rash' module KewegoParty class ParseXml < HTTParty::Parser def parse xml_parsed = ::MultiXml.parse(body) case xml_parsed when Hash ::Hashie::Rash.new(xml_parsed) when Array xml_parsed.map { |item| item.is_a?(Hash) ? ::Hashie::Rash.new(item) : item } else xml_parsed end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kewego_party-0.0.1 | lib/kewego_party/parse_xml.rb |