Class: OptimizelyServerSide::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



12
13
14
15
16
# File 'lib/optimizely_server_side/configuration.rb', line 12

def initialize
  @config_endpoint  = 'http://foo.com'
  @cache_expiry     = 15
  @user_attributes  = {}
end

Instance Attribute Details

#cache_expiryObject

Configuration enables to open up the configuration of gem for the application. config_endpoint: Optimizely config endpoint cache_expiry: (In minutes) How long we want to cache the config.



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

def cache_expiry
  @cache_expiry
end

#config_endpointObject

Configuration enables to open up the configuration of gem for the application. config_endpoint: Optimizely config endpoint cache_expiry: (In minutes) How long we want to cache the config.



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

def config_endpoint
  @config_endpoint
end

#event_dispatcherObject

Configuration enables to open up the configuration of gem for the application. config_endpoint: Optimizely config endpoint cache_expiry: (In minutes) How long we want to cache the config.



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

def event_dispatcher
  @event_dispatcher
end

#loggerObject

Configuration enables to open up the configuration of gem for the application. config_endpoint: Optimizely config endpoint cache_expiry: (In minutes) How long we want to cache the config.



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

def logger
  @logger
end

#user_attributesObject

Configuration enables to open up the configuration of gem for the application. config_endpoint: Optimizely config endpoint cache_expiry: (In minutes) How long we want to cache the config.



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

def user_attributes
  @user_attributes
end