Class: AdLocalize::Interactors::ExportWording

Inherits:
Object
  • Object
show all
Defined in:
lib/ad_localize/interactors/export_wording.rb

Instance Method Summary collapse

Instance Method Details

#call(export_request:, wording:) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/ad_localize/interactors/export_wording.rb', line 5

def call(export_request:, wording:)
  export_request.platforms.each do |platform|
    configure_output_directory(platform: platform, export_request: export_request)
    LOGGER.debug("[#{platform}] Start exporting in #{export_request.output_dir}")
    export_platform(wording: wording, platform: platform, export_request: export_request)
    LOGGER.debug("[#{platform}] done !")
  end
end