Class: BrDanfe::Danfe

Inherits:
Object
  • Object
show all
Defined in:
lib/br_danfe/danfe.rb

Class Method Summary collapse

Class Method Details

.new(xmls) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/br_danfe/danfe.rb', line 3

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