Sha256: 27c98c2fa90b647b09aa7bb4559e13f379809ca760f31e32c5b6fac69abbc8cd

Contents?: true

Size: 848 Bytes

Versions: 23

Compression:

Stored size: 848 Bytes

Contents

# frozen_string_literal: true

require 'br_invoices_pdf/cfe/renderer/company_identification'
require 'br_invoices_pdf/cfe/renderer/fisco_info'
require 'br_invoices_pdf/cfe/renderer/header'
require 'br_invoices_pdf/cfe/renderer/payment_forms'
require 'br_invoices_pdf/cfe/renderer/product_table'
require 'br_invoices_pdf/cfe/renderer/qr_code'
require 'br_invoices_pdf/cfe/renderer/taxes_info'
require 'br_invoices_pdf/cfe/renderer/totals'

module BrInvoicesPdf
  module Cfe
    module Renderer
      module_function

      extend Util::PdfRenderer

      RENDERERS = [
        CompanyIdentification,
        Header,
        ProductTable,
        Totals,
        PaymentForms,
        TaxesInfo,
        QrCode,
        FiscoInfo
      ].freeze

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
br_invoices_pdf-0.2.8 lib/br_invoices_pdf/cfe/renderer.rb
br_invoices_pdf-0.2.7 lib/br_invoices_pdf/cfe/renderer.rb
br_invoices_pdf-0.2.6.alpha.19 lib/br_invoices_pdf/cfe/renderer.rb