Class: Readiness::GoogleSheets::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/support_readiness/google_sheets/configuration.rb

Overview

Defines the class Configuration within the module Readiness::GoogleCalendar.

Author:

  • Jason Colyer

Since:

  • 1.0.39

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Examples:

require 'support_readiness'
config = Readiness::GoogleSheets::Configuration.new
config.spreadsheet_id = 'abc123'
config.filepath = 'data/config.json'
pp config
# => #<Readiness::GoogleSheets::Configuration:0x00007f352fdd1420
       @spreadsheet_id="abc123"
       @filepath="data/config.json"
       @scope="https://www.googleapis.com/auth/spreadsheets">

Author:

  • Jason Colyer

Since:

  • 1.0.39



31
32
33
34
35
36
# File 'lib/support_readiness/google_sheets/configuration.rb', line 31

def initialize
  # /home/jason/dev/gitlab-support-readiness/zendesk-us-government/tickets/round-robin/lib/round_robin
  @spreadsheet_id = ''
  @filepath = ''
  @scope = 'https://www.googleapis.com/auth/spreadsheets'
end

Instance Attribute Details

#filepathObject

Since:

  • 1.0.39



14
15
16
# File 'lib/support_readiness/google_sheets/configuration.rb', line 14

def filepath
  @filepath
end

#scopeObject

Since:

  • 1.0.39



14
15
16
# File 'lib/support_readiness/google_sheets/configuration.rb', line 14

def scope
  @scope
end

#spreadsheet_idObject

Since:

  • 1.0.39



14
15
16
# File 'lib/support_readiness/google_sheets/configuration.rb', line 14

def spreadsheet_id
  @spreadsheet_id
end