Sha256: 5986ae26d0e96a0f0fde92614213ad9d6f4c0060d9930f2f273466f664098d47

Contents?: true

Size: 408 Bytes

Versions: 23

Compression:

Stored size: 408 Bytes

Contents

# frozen_string_literal: true

module BrInvoicesPdf
  module Cfe
    module Renderer
      module BaseRenderer
        extend Util::BaseRenderer

        module_function

        ADDRESS_FORMAT = '%s, %s, %s, %s, %s/%s'
        def format_address(address)
          ADDRESS_FORMAT % %i(public_place number complement neighborhood city state).map(&address.method(:[]))
        end
      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/base_renderer.rb
br_invoices_pdf-0.2.7 lib/br_invoices_pdf/cfe/renderer/base_renderer.rb
br_invoices_pdf-0.2.6.alpha.19 lib/br_invoices_pdf/cfe/renderer/base_renderer.rb