Class: Kameleoon::Configuration::Settings
- Inherits:
-
Object
- Object
- Kameleoon::Configuration::Settings
- Defined in:
- lib/kameleoon/configuration/settings.rb
Overview
KameleoonConfigurationSettings is used for saving setting’s parameters, e.g state of real time update for site code and etc
Instance Attribute Summary collapse
-
#real_time_update ⇒ Object
Returns the value of attribute real_time_update.
Instance Method Summary collapse
-
#initialize ⇒ Settings
constructor
A new instance of Settings.
- #update(configuration) ⇒ Object
Constructor Details
#initialize ⇒ Settings
Returns a new instance of Settings.
11 12 13 |
# File 'lib/kameleoon/configuration/settings.rb', line 11 def initialize @real_time_update = false end |
Instance Attribute Details
#real_time_update ⇒ Object
Returns the value of attribute real_time_update.
9 10 11 |
# File 'lib/kameleoon/configuration/settings.rb', line 9 def real_time_update @real_time_update end |
Instance Method Details
#update(configuration) ⇒ Object
15 16 17 |
# File 'lib/kameleoon/configuration/settings.rb', line 15 def update(configuration) @real_time_update = configuration['realTimeUpdate'] || false end |