Class: Kameleoon::Configuration::Settings

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeSettings

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_updateObject

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