Class: BrNfe::Product::Reader::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/br_nfe/product/reader/item.rb

Class Method Summary collapse

Class Method Details

.new(xml, path) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/br_nfe/product/reader/item.rb', line 6

def new xml, path
  @xml      = xml
  @path     = path
  @item = BrNfe::Product::Nfe::Item.new
  populate!
  @item
end