Class: CSVPlusPlus::GoogleOptions

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(sheet_id) ⇒ GoogleOptions

Returns a new instance of GoogleOptions.

Parameters:

  • sheet_id (String)

    The unique ID Google uses to reference the sheet



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_idString

The ID of the Google Sheet to write to.

Returns:

  • (String)

    the current value of sheet_id



8
9
10
# File 'lib/csv_plus_plus/google_options.rb', line 8

def sheet_id
  @sheet_id
end

Instance Method Details

#verbose_summaryString

Format a string with a verbose description of what we’re doing with the options

Returns:

  • (String)


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