Class: Bakong::Khqr::MerchantCode::TerminalLabel
- Inherits:
-
TagLengthString
- Object
- TagLengthString
- Bakong::Khqr::MerchantCode::TerminalLabel
- Defined in:
- lib/bakong/khqr/merchant_code/additional_data.rb
Instance Attribute Summary
Attributes inherited from TagLengthString
Instance Method Summary collapse
-
#initialize(tag, value) ⇒ TerminalLabel
constructor
A new instance of TerminalLabel.
Methods inherited from TagLengthString
Constructor Details
#initialize(tag, value) ⇒ TerminalLabel
Returns a new instance of TerminalLabel.
90 91 92 93 94 95 96 |
# File 'lib/bakong/khqr/merchant_code/additional_data.rb', line 90 def initialize(tag, value) if value.length > EMV[:INVALID_LENGTH][:TERMINAL_LABEL] || value == "" raise Error.from(ERROR_CODES[:TERMINAL_LABEL_LENGTH_INVALID]) end super end |