Class: GcalMapper::Configuration
- Inherits:
-
Object
- Object
- GcalMapper::Configuration
- Defined in:
- lib/gcal_mapper/configuration.rb
Overview
Gem’s configuration
Instance Attribute Summary collapse
-
#calendars ⇒ Object
array that contains all the calendar id to fetch.
-
#client_email ⇒ Object
Service account email.
-
#fields ⇒ Object
hash that contains all the field with their source config.
-
#file ⇒ Object
Auth file path.
-
#gid ⇒ Object
name of the field that contains google event id.
-
#password ⇒ Object
passowrd for p12 key.
-
#user_email ⇒ Object
email of user to impersonat.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
New configuration object.
Constructor Details
#initialize ⇒ Configuration
New configuration object
17 18 19 20 |
# File 'lib/gcal_mapper/configuration.rb', line 17 def initialize @fields = {} @calendars = [] end |
Instance Attribute Details
#calendars ⇒ Object
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_email ⇒ Object
Service account email
11 12 13 |
# File 'lib/gcal_mapper/configuration.rb', line 11 def client_email @client_email end |
#fields ⇒ Object
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 |
#file ⇒ Object
Auth file path
10 11 12 |
# File 'lib/gcal_mapper/configuration.rb', line 10 def file @file end |
#gid ⇒ Object
name of the field that contains google event id
7 8 9 |
# File 'lib/gcal_mapper/configuration.rb', line 7 def gid @gid end |
#password ⇒ Object
passowrd for p12 key
13 14 15 |
# File 'lib/gcal_mapper/configuration.rb', line 13 def password @password end |
#user_email ⇒ Object
email of user to impersonat
12 13 14 |
# File 'lib/gcal_mapper/configuration.rb', line 12 def user_email @user_email end |