Class: TestCentricity::DataPresenter
- Defined in:
- lib/testcentricity_web/data_objects/data_objects_helper.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
-
#current ⇒ Object
Returns the value of attribute current.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data) ⇒ DataPresenter
constructor
A new instance of DataPresenter.
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
#context ⇒ Object
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 |
#current ⇒ Object
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
.current ⇒ Object
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 |