Class: Prawn::SwissQRBill::Sections::PaymentInformation

Inherits:
Section
  • Object
show all
Includes:
Helpers::BoxHelper
Defined in:
lib/prawn/swiss_qr_bill/sections/payment_information.rb

Overview

Information section at payment

Constant Summary collapse

KEY =
'payment.information'

Instance Attribute Summary

Attributes inherited from Section

#doc, #specs

Instance Method Summary collapse

Methods included from Helpers::BoxHelper

#corner_box

Methods inherited from Section

#initialize

Constructor Details

This class inherits a constructor from Prawn::SwissQRBill::Sections::Section

Instance Method Details

#drawObject



12
13
14
15
16
17
18
19
# File 'lib/prawn/swiss_qr_bill/sections/payment_information.rb', line 12

def draw
  box do
    draw_payable_to
    draw_reference if @data.key?(:reference)
    draw_additional_information if @data.key?(:unstructured_message) || @data.key?(:bill_information)
    draw_payable_by
  end
end