Class: AdLocalize::Mappers::OptionsToExportRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/ad_localize/mappers/options_to_export_request.rb

Instance Method Summary collapse

Instance Method Details

#map(options:) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/ad_localize/mappers/options_to_export_request.rb', line 4

def map(options:)
  Requests::ExportRequest.new(
    platforms: options[:only],
    g_spreadsheet_options: map_g_spreadsheet_options(options: options),
    verbose: options[:debug],
    output_path: options[:'target-dir'],
    merge_policy: options[:'merge-policy'],
    csv_paths: options[:csv_paths]
  )
end