Class: DTA::CharacterConversionHash
- Inherits:
-
Hash
- Object
- Hash
- DTA::CharacterConversionHash
- Includes:
- CharacterConversion
- Defined in:
- lib/payment_dta/character_conversion_hash.rb
Constant Summary
Constants included from CharacterConversion
DTA::CharacterConversion::CONVERSION_MAP_UTF8
Instance Method Summary collapse
-
#[](key) ⇒ String
Character conversion must be done before building the final record to prevent changing the length.
Methods included from CharacterConversion
#dta_string, #encode_characters, #map_characters
Instance Method Details
#[](key) ⇒ String
Character conversion must be done before building the final record to prevent changing the length.
11 12 13 |
# File 'lib/payment_dta/character_conversion_hash.rb', line 11 def [](key) (value = super(key)).respond_to?(:each_char) ? dta_string(value) : value end |