Sha256: fb7c770e39c299642a3c9ddb1a311b35c9a29b001e3770c6e92a2db16b57cd8d
Contents?: true
Size: 382 Bytes
Versions: 16
Compression:
Stored size: 382 Bytes
Contents
module BrDanfe class Danfe def self.new(xmls) xmls = [xmls] unless xmls.is_a?(Array) parsed_xmls = xmls.map { |xml| BrDanfe::XML.new(xml) } create_danfe(parsed_xmls) end def self.create_danfe(xmls) BrDanfe::Helper.nfe?(xmls.first) ? DanfeLib::Nfe.new(xmls) : DanfeLib::Nfce.new(xmls) end private_class_method :create_danfe end end
Version data entries
16 entries across 16 versions & 1 rubygems