Class: Prawn::SwissQRBill::Sections::ReceiptInformation

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

Overview

Information section at receipt

Constant Summary collapse

KEY =
'receipt.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
# File 'lib/prawn/swiss_qr_bill/sections/receipt_information.rb', line 12

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