Class: CSVPlusPlus::GoogleOptions

Inherits:
Struct
  • Object
show all
Defined in:
lib/csv_plus_plus/google_options.rb

Overview

The Google-specific options a user can supply

attr sheet_id [String] The ID of the Google Sheet to write to

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#sheet_idObject

Returns the value of attribute sheet_id

Returns:

  • (Object)

    the current value of sheet_id



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

def sheet_id
  @sheet_id
end

Instance Method Details

#to_sString

Returns:

  • (String)


21
22
23
# File 'lib/csv_plus_plus/google_options.rb', line 21

def to_s
  "GoogleOptions(sheet_id: #{sheet_id})"
end

#verbose_summaryString

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

Returns:

  • (String)


12
13
14
15
16
17
18
# File 'lib/csv_plus_plus/google_options.rb', line 12

def verbose_summary
  <<~SUMMARY
    ## Google Sheets Options

    > Sheet ID | #{sheet_id}
  SUMMARY
end