Class: CSVPlusPlus::Writer::GoogleSheetsBuilder

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Merger
Defined in:
lib/csv_plus_plus/writer/google_sheets_builder.rb

Overview

Given rows from a Template, build requests compatible with Google Sheets Ruby API rubocop:disable Metrics/ClassLength

Instance Method Summary collapse

Methods included from Merger

#merge_cell_value

Constructor Details

#initialize(options:, position:, reader:, rows:) ⇒ GoogleSheetsBuilder

Returns a new instance of GoogleSheetsBuilder.

Parameters:



24
25
26
27
28
29
# File 'lib/csv_plus_plus/writer/google_sheets_builder.rb', line 24

def initialize(options:, position:, reader:, rows:)
  @options = options
  @position = position
  @reader = reader
  @rows = rows
end

Instance Method Details

#batch_update_spreadsheet_requestGoogle::Apis::SheetsV4::BatchUpdateSpreadsheetRequest

Build a Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest

Returns:

  • (Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest)


35
36
37
# File 'lib/csv_plus_plus/writer/google_sheets_builder.rb', line 35

def batch_update_spreadsheet_request
  build_batch_request(@rows)
end