Module: Cloudfront::Utils::XmlSerializer

Instance Method Summary collapse

Instance Method Details

#to_xmlObject



9
10
11
12
13
14
# File 'lib/cloudfront/utils/xml_serializer.rb', line 9

def to_xml
  builder = Nokogiri::XML::Builder.new(:encoding => 'UTF-8') do |xml|
    build_xml(xml)
  end
  builder.to_xml
end