Class: Bakong::Khqr::MerchantCode::StoreLabel
- Inherits:
-
TagLengthString
- Object
- TagLengthString
- Bakong::Khqr::MerchantCode::StoreLabel
- Defined in:
- lib/bakong/khqr/merchant_code/additional_data.rb
Instance Attribute Summary
Attributes inherited from TagLengthString
Instance Method Summary collapse
-
#initialize(tag, value) ⇒ StoreLabel
constructor
A new instance of StoreLabel.
Methods inherited from TagLengthString
Constructor Details
#initialize(tag, value) ⇒ StoreLabel
Returns a new instance of StoreLabel.
80 81 82 83 84 85 86 |
# File 'lib/bakong/khqr/merchant_code/additional_data.rb', line 80 def initialize(tag, value) if value.length > EMV[:INVALID_LENGTH][:STORE_LABEL] || value == "" raise Error.from(ERROR_CODES[:STORE_LABEL_LENGTH_INVALID]) end super end |