Class: Prawn::SwissQRBill::QR::Data::Field
- Inherits:
-
Struct
- Object
- Struct
- Prawn::SwissQRBill::QR::Data::Field
- Defined in:
- lib/prawn/swiss_qr_bill/qr/data.rb
Overview
Field structure:
-
:default => default value to be set, if key is not given
-
:format => Proc to call when generating output
-
:skippable => Do not output in QR data if not given
-
:validation => Proc or symbol for validation
-
if Proc given: will be called with value as argument
-
if symbol given: method “#:symbol_validator” will be called with value as argument
-
Instance Attribute Summary collapse
-
#default ⇒ Object
Returns the value of attribute default.
-
#format ⇒ Object
Returns the value of attribute format.
-
#skippable ⇒ Object
Returns the value of attribute skippable.
-
#validation ⇒ Object
Returns the value of attribute validation.
Instance Attribute Details
#default ⇒ Object
Returns the value of attribute default
23 24 25 |
# File 'lib/prawn/swiss_qr_bill/qr/data.rb', line 23 def default @default end |
#format ⇒ Object
Returns the value of attribute format
23 24 25 |
# File 'lib/prawn/swiss_qr_bill/qr/data.rb', line 23 def format @format end |
#skippable ⇒ Object
Returns the value of attribute skippable
23 24 25 |
# File 'lib/prawn/swiss_qr_bill/qr/data.rb', line 23 def skippable @skippable end |
#validation ⇒ Object
Returns the value of attribute validation
23 24 25 |
# File 'lib/prawn/swiss_qr_bill/qr/data.rb', line 23 def validation @validation end |