Class: Prawn::SwissQRBill::Sections::PaymentInformation
- 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
Instance Method Summary collapse
Methods included from Helpers::BoxHelper
Methods inherited from Section
Constructor Details
This class inherits a constructor from Prawn::SwissQRBill::Sections::Section
Instance Method Details
#draw ⇒ Object
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 |