Class: BrDanfe::MdfeLib::Header
- Inherits:
-
Object
- Object
- BrDanfe::MdfeLib::Header
- Defined in:
- lib/br_danfe/mdfe_lib/header.rb
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(pdf, xml, logo, logo_dimensions) ⇒ Header
constructor
A new instance of Header.
Constructor Details
#initialize(pdf, xml, logo, logo_dimensions) ⇒ Header
Returns a new instance of Header.
4 5 6 7 8 9 |
# File 'lib/br_danfe/mdfe_lib/header.rb', line 4 def initialize(pdf, xml, logo, logo_dimensions) @pdf = pdf @xml = xml @logo = logo @logo_dimensions = logo_dimensions end |
Instance Method Details
#generate ⇒ Object
11 12 13 14 15 |
# File 'lib/br_danfe/mdfe_lib/header.rb', line 11 def generate generate_emit generate_title generate_qr_code if @xml['qrCodMDFe'].present? end |