Class: Kameleoon::Managers::Data::DataManager

Inherits:
Object
  • Object
show all
Defined in:
lib/kameleoon/managers/data/data_manager.rb

Defined Under Namespace

Classes: Container

Instance Method Summary collapse

Constructor Details

#initialize(data_file) ⇒ DataManager

Returns a new instance of DataManager.



7
8
9
# File 'lib/kameleoon/managers/data/data_manager.rb', line 7

def initialize(data_file)
  self.data_file = data_file
end

Instance Method Details

#data_fileObject



11
12
13
# File 'lib/kameleoon/managers/data/data_manager.rb', line 11

def data_file
  @container.data_file
end

#data_file=(value) ⇒ Object



15
16
17
# File 'lib/kameleoon/managers/data/data_manager.rb', line 15

def data_file=(value)
  @container = Container.new(value)
end

#visitor_code_managed?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/kameleoon/managers/data/data_manager.rb', line 19

def visitor_code_managed?
  @container.visitor_code_managed
end