Class: BrDanfe::CceLib::Correction
- Inherits:
-
Object
- Object
- BrDanfe::CceLib::Correction
- Defined in:
- lib/br_danfe/cce_lib/correction.rb
Instance Method Summary collapse
-
#initialize(pdf, xml) ⇒ Correction
constructor
A new instance of Correction.
- #render ⇒ Object
Constructor Details
#initialize(pdf, xml) ⇒ Correction
Returns a new instance of Correction.
4 5 6 7 |
# File 'lib/br_danfe/cce_lib/correction.rb', line 4 def initialize(pdf, xml) @pdf = pdf @xml = Nokogiri::XML(xml) end |
Instance Method Details
#render ⇒ Object
9 10 11 12 13 |
# File 'lib/br_danfe/cce_lib/correction.rb', line 9 def render @pdf.box(height: 490) do @pdf.text correction end end |