Class: AdLocalize::Interactors::ExportGSpreadsheet
- Inherits:
-
Object
- Object
- AdLocalize::Interactors::ExportGSpreadsheet
- Defined in:
- lib/ad_localize/interactors/export_g_spreadsheet.rb
Instance Method Summary collapse
- #call(export_request:) ⇒ Object
-
#initialize(value_range_to_wording: nil) ⇒ ExportGSpreadsheet
constructor
A new instance of ExportGSpreadsheet.
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..service_account_config export_with_service_account(export_request: export_request) else export_without_service_account(export_request: export_request) end end |