Class: OptimizelyServerSide::Configuration
- Inherits:
-
Object
- Object
- OptimizelyServerSide::Configuration
- Defined in:
- lib/optimizely_server_side/configuration.rb
Instance Attribute Summary collapse
-
#cache_expiry ⇒ Object
Configuration enables to open up the configuration of gem for the application.
-
#config_endpoint ⇒ Object
Configuration enables to open up the configuration of gem for the application.
-
#event_dispatcher ⇒ Object
Configuration enables to open up the configuration of gem for the application.
-
#logger ⇒ Object
Configuration enables to open up the configuration of gem for the application.
-
#user_attributes ⇒ Object
Configuration enables to open up the configuration of gem for the application.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_expiry ⇒ Object
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_endpoint ⇒ Object
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_dispatcher ⇒ Object
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 |
#logger ⇒ Object
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_attributes ⇒ Object
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 |