Class: Readiness::GoogleCalendar::Configuration

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

Overview

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

Author:

  • Jason Colyer

Since:

  • 1.0.12

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Examples:

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

Author:

  • Jason Colyer

Since:

  • 1.0.12



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

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

Instance Attribute Details

#calendar_idObject

Since:

  • 1.0.12



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

def calendar_id
  @calendar_id
end

#filepathObject

Since:

  • 1.0.12



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

def filepath
  @filepath
end

#scopeObject

Since:

  • 1.0.12



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

def scope
  @scope
end