Sha256: b8f687060dc558614b8b15fd32f7902ea18daebd8c034b0e4175547e48f7dbaa

Contents?: true

Size: 961 Bytes

Versions: 14

Compression:

Stored size: 961 Bytes

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/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,
        FiscalMessage,
        CustomerIdentification,
        QrCode
      ].freeze

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
br_invoices_pdf-0.2.15 lib/br_invoices_pdf/nfce/renderer.rb
br_invoices_pdf-0.2.14 lib/br_invoices_pdf/nfce/renderer.rb
br_invoices_pdf-0.2.14.alpha.23 lib/br_invoices_pdf/nfce/renderer.rb
br_invoices_pdf-0.2.13 lib/br_invoices_pdf/nfce/renderer.rb
br_invoices_pdf-0.2.13.alpha.22 lib/br_invoices_pdf/nfce/renderer.rb
br_invoices_pdf-0.2.12.alpha.21 lib/br_invoices_pdf/nfce/renderer.rb
br_invoices_pdf-0.2.12.alpha.20 lib/br_invoices_pdf/nfce/renderer.rb
br_invoices_pdf-0.2.12 lib/br_invoices_pdf/nfce/renderer.rb
br_invoices_pdf-0.2.11 lib/br_invoices_pdf/nfce/renderer.rb
br_invoices_pdf-0.2.10 lib/br_invoices_pdf/nfce/renderer.rb
br_invoices_pdf-0.2.9 lib/br_invoices_pdf/nfce/renderer.rb
br_invoices_pdf-0.2.8 lib/br_invoices_pdf/nfce/renderer.rb
br_invoices_pdf-0.2.7 lib/br_invoices_pdf/nfce/renderer.rb
br_invoices_pdf-0.2.6.alpha.19 lib/br_invoices_pdf/nfce/renderer.rb