Sha256: e140b670133247ce013dce19a5a713bf7289c43f7982c36a3e6008f0ed272ef8

Contents?: true

Size: 506 Bytes

Versions: 12

Compression:

Stored size: 506 Bytes

Contents

module BrDanfe
  module DanfeLib
    module NfceLib
      class Key
        def initialize(pdf, xml)
          @pdf = pdf
          @xml = xml
        end

        def render
          @pdf.render_blank_line

          @pdf.text 'Consulte pela Chave de Acesso em', size: 7, align: :center, style: :bold
          @pdf.text @xml['urlChave'], size: 7, align: :center
          @pdf.text @xml['chNFe'].gsub(/(\d)(?=(\d\d\d\d)+(?!\d))/, '\\1 '), size: 6, align: :center
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
br_danfe-0.16.0 lib/br_danfe/danfe_lib/nfce_lib/key.rb
br_danfe-0.15.1 lib/br_danfe/danfe_lib/nfce_lib/key.rb
br_danfe-0.15.0 lib/br_danfe/danfe_lib/nfce_lib/key.rb
br_danfe-0.14.5 lib/br_danfe/danfe_lib/nfce_lib/key.rb
br_danfe-0.14.4 lib/br_danfe/danfe_lib/nfce_lib/key.rb
br_danfe-0.14.3 lib/br_danfe/danfe_lib/nfce_lib/key.rb
br_danfe-0.14.2 lib/br_danfe/danfe_lib/nfce_lib/key.rb
br_danfe-0.14.0 lib/br_danfe/danfe_lib/nfce_lib/key.rb
br_danfe-0.13.3 lib/br_danfe/danfe_lib/nfce_lib/key.rb
br_danfe-0.13.2 lib/br_danfe/danfe_lib/nfce_lib/key.rb
br_danfe-0.13.1 lib/br_danfe/danfe_lib/nfce_lib/key.rb
br_danfe-0.13.0 lib/br_danfe/danfe_lib/nfce_lib/key.rb