Sha256: de68aeae0c7df260a45762a0f7661f2da8d05369e0d27841410e0a2234e9a8d5

Contents?: true

Size: 720 Bytes

Versions: 4

Compression:

Stored size: 720 Bytes

Contents

# frozen_string_literal: true

module Prawn
  module SwissQRBill
    # Sections module manages all different sections.
    module Sections
      # All relevant classes to draw the full bill,
      # ordered by drawing order.
      SECTION_CLASSES = [
        ReceiptTitle,
        ReceiptInformation,
        ReceiptAmount,
        ReceiptAcceptance,
        PaymentTitle,
        PaymentInformation,
        PaymentAmount,
        PaymentFurtherInformation,
        QRCode
      ].freeze

      # Draw all sections in the right order.
      def self.draw_all(document, data, options = {})
        SECTION_CLASSES.each do |klass|
          klass.new(document, data, options).draw
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
prawn-swiss_qr_bill-0.5.4 lib/prawn/swiss_qr_bill/sections.rb
prawn-swiss_qr_bill-0.5.2 lib/prawn/swiss_qr_bill/sections.rb
prawn-swiss_qr_bill-0.5.1 lib/prawn/swiss_qr_bill/sections.rb
prawn-swiss_qr_bill-0.5.0 lib/prawn/swiss_qr_bill/sections.rb