Class: SAFT::V2::Scribe

Inherits:
Object
  • Object
show all
Defined in:
lib/saft/v2/scribe.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.write_xml(audit_file) ⇒ Object



5
6
7
# File 'lib/saft/v2/scribe.rb', line 5

def self.write_xml(audit_file)
  new.write_xml(audit_file)
end

Instance Method Details

#write_xml(audit_file) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/saft/v2/scribe.rb', line 9

def write_xml(audit_file)
  builder = Nokogiri::XML::Builder.new(encoding: "UTF-8") do |xml|
    build_the_xml(xml, audit_file)
  end

  builder.to_xml(save_with: SAFT.nokogiri_save_setting)
end