Module: Prawn::SwissQRBill::Extension

Defined in:
lib/prawn/swiss_qr_bill/extension.rb

Overview

Extend prawn with swiss_qr_bill methods

Instance Method Summary collapse

Instance Method Details

#swiss_qr_bill(data, options = {}) ⇒ Object



7
8
9
# File 'lib/prawn/swiss_qr_bill/extension.rb', line 7

def swiss_qr_bill(data, options = {})
  Prawn::SwissQRBill::Bill.new(self, data, options).draw
end

#swiss_qr_bill_sectionsObject



11
12
13
14
15
# File 'lib/prawn/swiss_qr_bill/extension.rb', line 11

def swiss_qr_bill_sections
  canvas do
    Prawn::SwissQRBill::DebugSection.new(self).draw
  end
end