Class: AdLocalize::Serializers::YAMLSerializer

Inherits:
Object
  • Object
show all
Defined in:
lib/ad_localize/serializers/yaml_serializer.rb

Instance Method Summary collapse

Instance Method Details

#render(locale_wording:) ⇒ Object



5
6
7
8
# File 'lib/ad_localize/serializers/yaml_serializer.rb', line 5

def render(locale_wording:)
  content = Mappers::LocaleWordingToHash.new.map(locale_wording: locale_wording)
  content.to_yaml
end