Sha256: b5d14f810498a8e257e7da266826d8678a3d6e21b7502a17f4c8d631e29c03f5
Contents?: true
Size: 431 Bytes
Versions: 28
Compression:
Stored size: 431 Bytes
Contents
module BrDanfe module CceLib class Correction def initialize(pdf, xml) @pdf = pdf @xml = Nokogiri::XML(xml) end def render @pdf.box(height: 490) do @pdf.text correction end end private def correction node = @xml.css('procEventoNFe > evento > infEvento > detEvento > xCorrecao') node ? node.text : '' end end end end
Version data entries
28 entries across 28 versions & 1 rubygems