Sha256: 999f2cba0702f80e4dbe316612f75421a87a2cb4af16d5d56775f4818536c61b
Contents?: true
Size: 297 Bytes
Versions: 7
Compression:
Stored size: 297 Bytes
Contents
module BrDanfe class Danfe def self.new(xml) create_danfe BrDanfe::XML.new(xml) end def self.create_danfe(xml) nfe_code = '55' xml['ide > mod'] == nfe_code ? DanfeLib::Nfe.new(xml) : DanfeLib::Nfce.new(xml) end private_class_method :create_danfe end end
Version data entries
7 entries across 7 versions & 1 rubygems