Class: Bakong::Khqr::MerchantCode::MobileNumber
- Inherits:
-
TagLengthString
- Object
- TagLengthString
- Bakong::Khqr::MerchantCode::MobileNumber
- Defined in:
- lib/bakong/khqr/merchant_code/additional_data.rb
Instance Attribute Summary
Attributes inherited from TagLengthString
Instance Method Summary collapse
-
#initialize(tag, value) ⇒ MobileNumber
constructor
A new instance of MobileNumber.
Methods inherited from TagLengthString
Constructor Details
#initialize(tag, value) ⇒ MobileNumber
Returns a new instance of MobileNumber.
100 101 102 103 104 105 106 |
# File 'lib/bakong/khqr/merchant_code/additional_data.rb', line 100 def initialize(tag, value) if value.length > EMV[:INVALID_LENGTH][:MOBILE_NUMBER] || value == "" raise Error.from(ERROR_CODES[:MOBILE_NUMBER_LENGTH_INVALID]) end super end |