Class: BrDanfe::MdfeLib::MdfeIdentification
- Inherits:
-
Object
- Object
- BrDanfe::MdfeLib::MdfeIdentification
- Defined in:
- lib/br_danfe/mdfe_lib/mdfe_identification.rb
Instance Method Summary collapse
- #generate(page) ⇒ Object
-
#initialize(pdf, xml) ⇒ MdfeIdentification
constructor
A new instance of MdfeIdentification.
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 |