Sha256: c9643d75f2a15f2d24cc1ea9ae3052c0901a563cb477341adf4e76c2543b1841
Contents?: true
Size: 485 Bytes
Versions: 28
Compression:
Stored size: 485 Bytes
Contents
module BrDanfe module CceLib class Protocol def initialize(pdf, xml) @pdf = pdf @xml = Nokogiri::XML(xml) end def render @pdf.box(height: 36) do @pdf.text I18n.t('cce.protocol'), size: 8, style: :bold @pdf.text protocol, pad: 5 end end private def protocol node = @xml.css('procEventoNFe > retEvento > infEvento > nProt') node ? node.text : '' end end end end
Version data entries
28 entries across 28 versions & 1 rubygems