Class: AtlasEngine::AddressValidation::Es::DataMappers::DecompoundingDataMapper

Inherits:
DefaultDataMapper
  • Object
show all
Defined in:
app/models/atlas_engine/address_validation/es/data_mappers/decompounding_data_mapper.rb

Instance Attribute Summary

Attributes inherited from DefaultDataMapper

#locale, #post_address

Instance Method Summary collapse

Methods inherited from DefaultDataMapper

#initialize

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_dataObject



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