Class: Prawn::SwissQRBill::Sections::ReceiptTitle

Inherits:
Section
  • Object
show all
Defined in:
lib/prawn/swiss_qr_bill/sections/receipt_title.rb

Overview

Title section at receipt

Constant Summary collapse

KEY =
'receipt.title'

Instance Attribute Summary

Attributes inherited from Section

#doc, #specs

Instance Method Summary collapse

Methods inherited from Section

#initialize

Constructor Details

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

Instance Method Details

#drawObject



10
11
12
13
14
# File 'lib/prawn/swiss_qr_bill/sections/receipt_title.rb', line 10

def draw
  box do
    content I18n.t('receipt', scope: i18n_scope)
  end
end