Class: CSVPlusPlus::Writer::GoogleSheetsBuilder
- Inherits:
-
Object
- Object
- CSVPlusPlus::Writer::GoogleSheetsBuilder
- 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
-
#batch_update_spreadsheet_request ⇒ Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest
Build a Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest.
-
#initialize(options:, position:, reader:, rows:) ⇒ GoogleSheetsBuilder
constructor
A new instance of GoogleSheetsBuilder.
Methods included from Merger
Constructor Details
#initialize(options:, position:, reader:, rows:) ⇒ GoogleSheetsBuilder
Returns a new instance of GoogleSheetsBuilder.
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 = @position = position @reader = reader @rows = rows end |
Instance Method Details
#batch_update_spreadsheet_request ⇒ Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest
Build a 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 |