class AdLocalize::Serializers::InfoPlistSerializer

Constants

INFO_PLIST_FILENAME

Public Class Methods

new() click to toggle source
# File lib/ad_localize/serializers/info_plist_serializer.rb, line 8
def initialize
  @translation_mapper = Mappers::IOSTranslationMapper.new
end

Private Instance Methods

hash_binding(locale_wording:) click to toggle source
# File lib/ad_localize/serializers/info_plist_serializer.rb, line 18
def hash_binding(locale_wording:)
  { translations: map_translations(translations: locale_wording.info_plists) }
end
map_translations(translations:) click to toggle source
# File lib/ad_localize/serializers/info_plist_serializer.rb, line 22
def map_translations(translations:)
  translations.map { |translation| @translation_mapper.map(translation: translation) }
end
template_path() click to toggle source
# File lib/ad_localize/serializers/info_plist_serializer.rb, line 14
def template_path
  TEMPLATES_DIRECTORY + "/ios/#{INFO_PLIST_FILENAME}.erb"
end