Class: BrDanfe::DanfeLib::NfeLib::EmitHeader
- Inherits:
-
Object
- Object
- BrDanfe::DanfeLib::NfeLib::EmitHeader
- Defined in:
- lib/br_danfe/danfe_lib/nfe_lib/emit_header.rb
Instance Method Summary collapse
-
#initialize(pdf, xml, logo, logo_dimensions) ⇒ EmitHeader
constructor
A new instance of EmitHeader.
- #render(page, y_position, total) ⇒ Object
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, logo_dimensions) @pdf = pdf @xml = xml @logo = 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 |