Sha256: 1931ac234db2303db1c23210236e22776e944158f5210fe224853c777e037b52

Contents?: true

Size: 1.01 KB

Versions: 9

Compression:

Stored size: 1.01 KB

Contents

# frozen_string_literal: true

require 'br_invoices_pdf/nfce/renderer/company_identification'
require 'br_invoices_pdf/nfce/renderer/customer_identification'
require 'br_invoices_pdf/nfce/renderer/header'
require 'br_invoices_pdf/nfce/renderer/product_table'
require 'br_invoices_pdf/nfce/renderer/totals'
require 'br_invoices_pdf/nfce/renderer/payment_forms'
require 'br_invoices_pdf/nfce/renderer/taxes_info'
require 'br_invoices_pdf/nfce/renderer/procon_info'
require 'br_invoices_pdf/nfce/renderer/fiscal_message'
require 'br_invoices_pdf/nfce/renderer/qr_code'

module BrInvoicesPdf
  module Nfce
    module Renderer
      extend Util::PdfRenderer

      module_function

      RENDERERS = [
        CompanyIdentification,
        Header,
        ProductTable,
        Totals,
        PaymentForms,
        TaxesInfo,
        ProconInfo,
        FiscalMessage,
        CustomerIdentification,
        QrCode
      ].freeze

      def pdf(data, options)
        generate_pdf(data, options, RENDERERS)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
br_invoices_pdf-0.2.24 lib/br_invoices_pdf/nfce/renderer.rb
br_invoices_pdf-0.2.23 lib/br_invoices_pdf/nfce/renderer.rb
br_invoices_pdf-0.2.22 lib/br_invoices_pdf/nfce/renderer.rb
br_invoices_pdf-0.2.21 lib/br_invoices_pdf/nfce/renderer.rb
br_invoices_pdf-0.2.20 lib/br_invoices_pdf/nfce/renderer.rb
br_invoices_pdf-0.2.19 lib/br_invoices_pdf/nfce/renderer.rb
br_invoices_pdf-0.2.18 lib/br_invoices_pdf/nfce/renderer.rb
br_invoices_pdf-0.2.17 lib/br_invoices_pdf/nfce/renderer.rb
br_invoices_pdf-0.2.16 lib/br_invoices_pdf/nfce/renderer.rb