Class: Prawn::SwissQRBill::Sections::PaymentAmount
- Includes:
- Helpers::BoxHelper, Helpers::NumberHelper
- Defined in:
- lib/prawn/swiss_qr_bill/sections/payment_amount.rb
Overview
Amount section at payment
TODO: allow EUR payment TODO: find solution to put measurements to specs.yml OPTIMIZE: refactor with receipt_amount
Constant Summary collapse
- KEY =
'payment.amount'
- CURRENCY_WIDTH =
width of the currency field with enough space for both variants
14.mm
- AMOUNT_WIDTH =
width of amount when amount has to be displayed
29.mm
- AMOUNT_LABEL_HEIGHT =
height of the amount label when corner-box has to be displayed
4.mm
- AMOUNT_BOX_WIDTH =
measurement of amount corner-box
40.mm
- AMOUNT_BOX_HEIGHT =
15.mm
Instance Attribute Summary
Attributes inherited from Section
Instance Method Summary collapse
Methods included from Helpers::BoxHelper
Methods included from Helpers::NumberHelper
Methods inherited from Section
Constructor Details
This class inherits a constructor from Prawn::SwissQRBill::Sections::Section
Instance Method Details
#draw ⇒ Object
30 31 32 33 34 35 |
# File 'lib/prawn/swiss_qr_bill/sections/payment_amount.rb', line 30 def draw box do draw_currency draw_amount end end |