Class: BrDanfe::DanfeLib::NfeLib::EmitHeader

Inherits:
Object
  • Object
show all
Defined in:
lib/br_danfe/danfe_lib/nfe_lib/emit_header.rb

Instance Method Summary collapse

Constructor Details

#initialize(pdf, xml, logo, logo_dimensions) ⇒ EmitHeader

Returns a new instance of EmitHeader.



5
6
7
8
9
10
# File 'lib/br_danfe/danfe_lib/nfe_lib/emit_header.rb', line 5

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

Instance Method Details

#render(page, y_position, total) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/br_danfe/danfe_lib/nfe_lib/emit_header.rb', line 12

def render(page, y_position, total)
  @y_position = y_position
  company_box
  danfe_box(page, total)
  access_key_box
  sefaz_box
  render_emit y_position
end