Class: Bakong::Khqr::MerchantCode::BillNumber
- Inherits:
-
TagLengthString
- Object
- TagLengthString
- Bakong::Khqr::MerchantCode::BillNumber
- Defined in:
- lib/bakong/khqr/merchant_code/additional_data.rb
Instance Attribute Summary
Attributes inherited from TagLengthString
Instance Method Summary collapse
-
#initialize(tag, value) ⇒ BillNumber
constructor
A new instance of BillNumber.
Methods inherited from TagLengthString
Constructor Details
#initialize(tag, value) ⇒ BillNumber
Returns a new instance of BillNumber.
70 71 72 73 74 75 76 |
# File 'lib/bakong/khqr/merchant_code/additional_data.rb', line 70 def initialize(tag, value) if value.length > EMV[:INVALID_LENGTH][:BILL_NUMBER] || value == "" raise Error.from(ERROR_CODES[:BILL_NUMBER_LENGTH_INVALID]) end super end |