class AdLocalize::Serializers::YAMLSerializer

Public Class Methods

new() click to toggle source
# File lib/ad_localize/serializers/yaml_serializer.rb, line 4
def initialize
  @locale_wording_to_hash = Mappers::LocaleWordingToHash.new
end

Public Instance Methods

render(locale_wording:) click to toggle source
# File lib/ad_localize/serializers/yaml_serializer.rb, line 8
def render(locale_wording:)
  @locale_wording_to_hash.map(locale_wording: locale_wording).to_yaml
end