Class: CSVPlusPlus::Options::GoogleSheetsOptions
- Extended by:
- T::Sig
- Defined in:
- lib/csv_plus_plus/options/google_sheets_options.rb
Overview
The Google-specific options a user can supply.
Instance Attribute Summary collapse
-
#sheet_id ⇒ String
The ID of the Google Sheet to write to.
Attributes inherited from Options
#backup, #create_if_not_exists, #key_values, #offset, #overwrite_values, #sheet_name, #verbose
Instance Method Summary collapse
-
#initialize(sheet_name, sheet_id) ⇒ GoogleSheetsOptions
constructor
A new instance of GoogleSheetsOptions.
- #output_format ⇒ OutputFormat
-
#verbose_summary ⇒ String
Format a string with a verbose description of Google-specific options.
Constructor Details
#initialize(sheet_name, sheet_id) ⇒ GoogleSheetsOptions
Returns a new instance of GoogleSheetsOptions.
18 19 20 21 22 |
# File 'lib/csv_plus_plus/options/google_sheets_options.rb', line 18 def initialize(sheet_name, sheet_id) super(sheet_name) @sheet_id = sheet_id end |
Instance Attribute Details
#sheet_id ⇒ String
The ID of the Google Sheet to write to.
9 10 11 |
# File 'lib/csv_plus_plus/options/google_sheets_options.rb', line 9 def sheet_id @sheet_id end |
Instance Method Details
#output_format ⇒ OutputFormat
26 27 28 |
# File 'lib/csv_plus_plus/options/google_sheets_options.rb', line 26 def output_format ::CSVPlusPlus::Options::OutputFormat::GoogleSheets end |
#verbose_summary ⇒ String
Format a string with a verbose description of Google-specific options
34 35 36 37 38 39 |
# File 'lib/csv_plus_plus/options/google_sheets_options.rb', line 34 def verbose_summary shared_summary( <<~SUMMARY) > Sheet ID | #{@sheet_id} SUMMARY end |