Class: TestCentricity::DataPresenter

Inherits:
Object
  • Object
show all
Defined in:
lib/testcentricity_web/data_objects/data_objects_helper.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ DataPresenter

Returns a new instance of DataPresenter.



42
43
44
# File 'lib/testcentricity_web/data_objects/data_objects_helper.rb', line 42

def initialize(data)
  self.attributes = data unless data.nil?
end

Instance Attribute Details

#contextObject

Returns the value of attribute context.



40
41
42
# File 'lib/testcentricity_web/data_objects/data_objects_helper.rb', line 40

def context
  @context
end

#currentObject

Returns the value of attribute current.



39
40
41
# File 'lib/testcentricity_web/data_objects/data_objects_helper.rb', line 39

def current
  @current
end

Class Method Details

.currentObject



46
47
48
# File 'lib/testcentricity_web/data_objects/data_objects_helper.rb', line 46

def self.current
  @current
end

.current=(current) ⇒ Object



50
51
52
# File 'lib/testcentricity_web/data_objects/data_objects_helper.rb', line 50

def self.current=(current)
  @current = current
end