Class: CalInvite::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Initializes a new Configuration instance with default values.



17
18
19
20
21
22
23
# File 'lib/cal_invite/configuration.rb', line 17

def initialize
  @cache_store = nil
  @cache_prefix = 'cal_invite'
  @cache_expires_in = 24.hours # now this will work with active_support loaded
  @webhook_secret = nil
  @timezone = 'UTC'
end

Instance Attribute Details

#cache_expires_inObject

Returns the value of attribute cache_expires_in.



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

def cache_expires_in
  @cache_expires_in
end

#cache_prefixObject

Returns the value of attribute cache_prefix.



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

def cache_prefix
  @cache_prefix
end

#cache_storeObject

Returns the value of attribute cache_store.



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

def cache_store
  @cache_store
end

#timezoneObject

Returns the value of attribute timezone.



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

def timezone
  @timezone
end

#webhook_secretObject

Returns the value of attribute webhook_secret.



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

def webhook_secret
  @webhook_secret
end