Sha256: eef4eca9b4e5d46f9e8d6ecdec1433d7dd11e7a4da03b3bf7664e0e0588b8d5d

Contents?: true

Size: 476 Bytes

Versions: 21

Compression:

Stored size: 476 Bytes

Contents

# frozen_string_literal: true

module BrInvoicesPdf
  module Nfce
    module Renderer
      module BaseRenderer
        extend Util::BaseRenderer

        module_function

        ADDRESS_FORMAT = '%s, %s, %s, %s/%s'
        def format_address(address)
          ADDRESS_FORMAT % %i(streetname number district city state).map(&address.method(:[]))
        end

        def format_date(date)
          date.strftime('%H:%M:%S %d/%m/%Y')
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
br_invoices_pdf-0.2.22 lib/br_invoices_pdf/nfce/renderer/base_renderer.rb
br_invoices_pdf-0.2.21 lib/br_invoices_pdf/nfce/renderer/base_renderer.rb
br_invoices_pdf-0.2.20 lib/br_invoices_pdf/nfce/renderer/base_renderer.rb
br_invoices_pdf-0.2.19 lib/br_invoices_pdf/nfce/renderer/base_renderer.rb
br_invoices_pdf-0.2.18 lib/br_invoices_pdf/nfce/renderer/base_renderer.rb
br_invoices_pdf-0.2.17 lib/br_invoices_pdf/nfce/renderer/base_renderer.rb
br_invoices_pdf-0.2.16 lib/br_invoices_pdf/nfce/renderer/base_renderer.rb
br_invoices_pdf-0.2.15 lib/br_invoices_pdf/nfce/renderer/base_renderer.rb
br_invoices_pdf-0.2.14 lib/br_invoices_pdf/nfce/renderer/base_renderer.rb
br_invoices_pdf-0.2.14.alpha.23 lib/br_invoices_pdf/nfce/renderer/base_renderer.rb
br_invoices_pdf-0.2.13 lib/br_invoices_pdf/nfce/renderer/base_renderer.rb
br_invoices_pdf-0.2.13.alpha.22 lib/br_invoices_pdf/nfce/renderer/base_renderer.rb
br_invoices_pdf-0.2.12.alpha.21 lib/br_invoices_pdf/nfce/renderer/base_renderer.rb
br_invoices_pdf-0.2.12.alpha.20 lib/br_invoices_pdf/nfce/renderer/base_renderer.rb
br_invoices_pdf-0.2.12 lib/br_invoices_pdf/nfce/renderer/base_renderer.rb
br_invoices_pdf-0.2.11 lib/br_invoices_pdf/nfce/renderer/base_renderer.rb
br_invoices_pdf-0.2.10 lib/br_invoices_pdf/nfce/renderer/base_renderer.rb
br_invoices_pdf-0.2.9 lib/br_invoices_pdf/nfce/renderer/base_renderer.rb
br_invoices_pdf-0.2.8 lib/br_invoices_pdf/nfce/renderer/base_renderer.rb
br_invoices_pdf-0.2.7 lib/br_invoices_pdf/nfce/renderer/base_renderer.rb