Sha256: 069d73df7b145669a8a00f4043042bf1e923ba2612103751c1e2944ab37fa96c
Contents?: true
Size: 296 Bytes
Versions: 10
Compression:
Stored size: 296 Bytes
Contents
module WeiBackend module Utils def self.parse_params(request_body) doc = Nokogiri::XML::Document.parse request_body result = {} doc.at_css('xml').element_children.each do |child| result[child.name.to_sym] = child.child.text end result end end end
Version data entries
10 entries across 10 versions & 1 rubygems