Class: BrDanfe::DanfeLib::NfceLib::ProductList

Inherits:
Object
  • Object
show all
Defined in:
lib/br_danfe/danfe_lib/nfce_lib/product_list.rb

Instance Method Summary collapse

Constructor Details

#initialize(pdf, xml) ⇒ ProductList

Returns a new instance of ProductList.



5
6
7
8
# File 'lib/br_danfe/danfe_lib/nfce_lib/product_list.rb', line 5

def initialize(pdf, xml)
  @pdf = pdf
  @xml = xml
end

Instance Method Details

#renderObject



10
11
12
13
# File 'lib/br_danfe/danfe_lib/nfce_lib/product_list.rb', line 10

def render
  render_headers(headers)
  render_products
end