Module: BrInvoicesPdf::Cfe::Renderer::BaseRenderer
- Extended by:
- Util::BaseRenderer
- Included in:
- CompanyIdentification, FiscoInfo, Header, PaymentForms, ProductTable, QrCode, TaxesInfo, Totals
- Defined in:
- lib/br_invoices_pdf/cfe/renderer/base_renderer.rb
Constant Summary collapse
- ADDRESS_FORMAT =
'%s, %s, %s, %s, %s/%s'
Constants included from Util::BaseRenderer
Util::BaseRenderer::CNPJ_FORMAT, Util::BaseRenderer::CPF_FORMAT, Util::BaseRenderer::PAYMENTS_TABLE_BASE_DATA
Class Method Summary collapse
Methods included from Util::BaseRenderer
box, format_cnpj, format_cpf, format_currency, format_number, page_content_width, page_paper_width, pdf_setup
Class Method Details
.format_address(address) ⇒ Object
12 13 14 |
# File 'lib/br_invoices_pdf/cfe/renderer/base_renderer.rb', line 12 def format_address(address) ADDRESS_FORMAT % %i(public_place number complement neighborhood city state).map(&address.method(:[])) end |