lib/br_danfe/danfe.rb in br_danfe-0.13.1 vs lib/br_danfe/danfe.rb in br_danfe-0.13.2

- old
+ new

@@ -4,10 +4,10 @@ create_danfe BrDanfe::XML.new(xml) end def self.create_danfe(xml) nfe_code = '55' - xml['mod'] == nfe_code ? DanfeLib::Nfe.new(xml) : DanfeLib::Nfce.new(xml) + xml['ide > mod'] == nfe_code ? DanfeLib::Nfe.new(xml) : DanfeLib::Nfce.new(xml) end private_class_method :create_danfe end end