Class: CSVPlusPlus::GoogleOptions
- Inherits:
-
Object
- Object
- CSVPlusPlus::GoogleOptions
- Extended by:
- T::Sig
- Defined in:
- lib/csv_plus_plus/google_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.
Instance Method Summary collapse
-
#initialize(sheet_id) ⇒ GoogleOptions
constructor
A new instance of GoogleOptions.
-
#verbose_summary ⇒ String
Format a string with a verbose description of what we’re doing with the options.
Constructor Details
#initialize(sheet_id) ⇒ GoogleOptions
Returns a new instance of GoogleOptions.
16 17 18 |
# File 'lib/csv_plus_plus/google_options.rb', line 16 def initialize(sheet_id) @sheet_id = sheet_id end |
Instance Attribute Details
#sheet_id ⇒ String
The ID of the Google Sheet to write to.
8 9 10 |
# File 'lib/csv_plus_plus/google_options.rb', line 8 def sheet_id @sheet_id end |
Instance Method Details
#verbose_summary ⇒ String
Format a string with a verbose description of what we’re doing with the options
24 25 26 27 28 29 30 |
# File 'lib/csv_plus_plus/google_options.rb', line 24 def verbose_summary <<~SUMMARY ## Google Sheets Options > Sheet ID | #{@sheet_id} SUMMARY end |