lib/br_danfe/mdfe.rb in br_danfe-0.17.0 vs lib/br_danfe/mdfe.rb in br_danfe-0.17.1
- old
+ new
@@ -5,10 +5,10 @@
class Mdfe
attr_reader :logo_options
def initialize(xml)
- @xml = xml
+ @xml = BrDanfe::XML.new(xml)
@pdf = MdfeLib::Document.new
@logo_options = BrDanfe::Logo::Config.new
end
def save_pdf(filename)