Class: AdLocalize::Mappers::TranslationMapper
- Inherits:
-
Object
- Object
- AdLocalize::Mappers::TranslationMapper
show all
- Defined in:
- lib/ad_localize/mappers/translation_mapper.rb
Instance Method Summary
collapse
Instance Method Details
#map(translation:) ⇒ Object
4
5
6
7
8
9
10
11
|
# File 'lib/ad_localize/mappers/translation_mapper.rb', line 4
def map(translation:)
ViewModels::TranslationViewModel.new(
label: translation.key.label,
key: key(translation: translation),
value: sanitize_value(value: translation.value),
comment: translation.
)
end
|