Class: BrDanfe::MdfeLib::MdfeIdentification

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

Instance Method Summary collapse

Constructor Details

#initialize(pdf, xml) ⇒ MdfeIdentification

Returns a new instance of MdfeIdentification.



4
5
6
7
# File 'lib/br_danfe/mdfe_lib/mdfe_identification.rb', line 4

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

Instance Method Details

#generate(page) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/br_danfe/mdfe_lib/mdfe_identification.rb', line 9

def generate(page)
  model
  series
  number
  number_of_pages(page)
  emitted_at
  origin_uf
  destination_uf
end