Class: GcalMapper::Configuration

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

Overview

Gem’s configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

New configuration object



17
18
19
20
# File 'lib/gcal_mapper/configuration.rb', line 17

def initialize
  @fields = {}
  @calendars = []
end

Instance Attribute Details

#calendarsObject

array that contains all the calendar id to fetch



9
10
11
# File 'lib/gcal_mapper/configuration.rb', line 9

def calendars
  @calendars
end

#client_emailObject

Service account email



11
12
13
# File 'lib/gcal_mapper/configuration.rb', line 11

def client_email
  @client_email
end

#fieldsObject

hash that contains all the field with their source config



8
9
10
# File 'lib/gcal_mapper/configuration.rb', line 8

def fields
  @fields
end

#fileObject

Auth file path



10
11
12
# File 'lib/gcal_mapper/configuration.rb', line 10

def file
  @file
end

#gidObject

name of the field that contains google event id



7
8
9
# File 'lib/gcal_mapper/configuration.rb', line 7

def gid
  @gid
end

#passwordObject

passowrd for p12 key



13
14
15
# File 'lib/gcal_mapper/configuration.rb', line 13

def password
  @password
end

#user_emailObject

email of user to impersonat



12
13
14
# File 'lib/gcal_mapper/configuration.rb', line 12

def user_email
  @user_email
end