Class: AdLocalize::Interactors::ExportGSpreadsheet

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

Instance Method Summary collapse

Constructor Details

#initialize(value_range_to_wording: nil) ⇒ ExportGSpreadsheet

Returns a new instance of ExportGSpreadsheet.



4
5
6
7
# File 'lib/ad_localize/interactors/export_g_spreadsheet.rb', line 4

def initialize(value_range_to_wording: nil)
  @value_range_to_wording = value_range_to_wording.presence || Mappers::ValueRangeToWording.new
  @g_sheets_repository = Repositories::GSheetsRepository.new
end

Instance Method Details

#call(export_request:) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/ad_localize/interactors/export_g_spreadsheet.rb', line 9

def call(export_request:)
  LOGGER.debug("Starting export google spreadsheet")
  if export_request.g_spreadsheet_options.
    (export_request: export_request)
  else
    (export_request: export_request)
  end
end