Class: AtlasEngine::AddressValidation::Es::DataMappers::DecompoundingDataMapper
- Inherits:
-
DefaultDataMapper
- Object
- DefaultDataMapper
- AtlasEngine::AddressValidation::Es::DataMappers::DecompoundingDataMapper
- Defined in:
- app/models/atlas_engine/address_validation/es/data_mappers/decompounding_data_mapper.rb
Instance Attribute Summary
Attributes inherited from DefaultDataMapper
Instance Method Summary collapse
Methods inherited from DefaultDataMapper
Methods included from LogHelper
#log_error, #log_info, #log_warn
Constructor Details
This class inherits a constructor from AtlasEngine::AddressValidation::Es::DataMappers::DefaultDataMapper
Instance Method Details
#map_data ⇒ Object
12 13 14 15 16 17 18 |
# File 'app/models/atlas_engine/address_validation/es/data_mappers/decompounding_data_mapper.rb', line 12 def map_data super.tap do |data| decompounded_fields.each do |field| data["#{field}_decompounded".to_sym] = decompound(field: field, value: data[field]) end end end |