class BrDanfe::CceLib::Correction
Public Class Methods
new(pdf, xml)
click to toggle source
# File lib/br_danfe/cce_lib/correction.rb, line 4 def initialize(pdf, xml) @pdf = pdf @xml = Nokogiri::XML(xml) end
Public Instance Methods
render()
click to toggle source
# File lib/br_danfe/cce_lib/correction.rb, line 9 def render @pdf.box(height: 490) do @pdf.text correction end end
Private Instance Methods
correction()
click to toggle source
# File lib/br_danfe/cce_lib/correction.rb, line 17 def correction node = @xml.css('procEventoNFe > evento > infEvento > detEvento > xCorrecao') node ? node.text : '' end