Class: Bakong::Khqr::MerchantCode::PurposeOfTransaction
- Inherits:
-
TagLengthString
- Object
- TagLengthString
- Bakong::Khqr::MerchantCode::PurposeOfTransaction
- Defined in:
- lib/bakong/khqr/merchant_code/additional_data.rb
Instance Attribute Summary
Attributes inherited from TagLengthString
Instance Method Summary collapse
-
#initialize(tag, value) ⇒ PurposeOfTransaction
constructor
A new instance of PurposeOfTransaction.
Methods inherited from TagLengthString
Constructor Details
#initialize(tag, value) ⇒ PurposeOfTransaction
Returns a new instance of PurposeOfTransaction.
110 111 112 113 114 115 116 |
# File 'lib/bakong/khqr/merchant_code/additional_data.rb', line 110 def initialize(tag, value) if value.length > EMV[:INVALID_LENGTH][:PURPOSE_OF_TRANSACTION] || value == "" raise Error.from(ERROR_CODES[:PURPOSE_OF_TRANSACTION_LENGTH_INVALID]) end super end |