Sha256: 4843cc10e436b5882c005878edc5fd7f05b26e7764d4294461ce6cbaffa7a255
Contents?: true
Size: 491 Bytes
Versions: 27
Compression:
Stored size: 491 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") return node ? node.text : "" end end end end
Version data entries
27 entries across 27 versions & 1 rubygems