Sha256: 0235a0f6137ef87fbf03952df68265faf3ca97a3b72c0d6b812e64dc325d24cb
Contents?: true
Size: 585 Bytes
Versions: 10
Compression:
Stored size: 585 Bytes
Contents
module CorreiosSigep module Builders module XML class Request def self.build_xml(request, overrides={}) config = CorreiosSigep.configuration document = Nokogiri::XML(request.to_xml) administrative_fields = overrides[:administrative] || config.administrative_fields XML::Authentication.new(document, administrative_fields).build_xml! document .to_xml(save_with: Nokogiri::XML::Node::SaveOptions::NO_DECLARATION) .gsub(/<(\/)?root>/, '') end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems