Class: BrDanfe::DanfeLib::NfeLib::DetBody
- Inherits:
-
Object
- Object
- BrDanfe::DanfeLib::NfeLib::DetBody
- Defined in:
- lib/br_danfe/danfe_lib/nfe_lib/det_body.rb
Instance Method Summary collapse
-
#initialize(pdf, xml) ⇒ DetBody
constructor
A new instance of DetBody.
- #render(has_issqn) ⇒ Object
Constructor Details
#initialize(pdf, xml) ⇒ DetBody
Returns a new instance of DetBody.
5 6 7 8 |
# File 'lib/br_danfe/danfe_lib/nfe_lib/det_body.rb', line 5 def initialize(pdf, xml) @pdf = pdf @xml = xml end |
Instance Method Details
#render(has_issqn) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/br_danfe/danfe_lib/nfe_lib/det_body.rb', line 10 def render(has_issqn) table_height_on_first_page = table_height_on_first_page has_issqn first_table = create_table next_table = create_table fill_tables first_table, next_table, table_height_on_first_page render_tables first_table, next_table, table_height_on_first_page end |