Class: BrDanfe::MdfeLib::Header

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

Instance Method Summary collapse

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_dimensions)
  @pdf = pdf
  @xml = xml
  @logo = 
  @logo_dimensions = logo_dimensions
end

Instance Method Details

#generateObject



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