Class: TestCentricity::DataPresenter
- Defined in:
- lib/testcentricity_apps/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.
39 40 41 |
# File 'lib/testcentricity_apps/data_objects/data_objects_helper.rb', line 39 def initialize(data) self.attributes = data unless data.nil? end |
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context.
37 38 39 |
# File 'lib/testcentricity_apps/data_objects/data_objects_helper.rb', line 37 def context @context end |
#current ⇒ Object
Returns the value of attribute current.
37 38 39 |
# File 'lib/testcentricity_apps/data_objects/data_objects_helper.rb', line 37 def current @current end |
Class Method Details
.current ⇒ Object
43 44 45 |
# File 'lib/testcentricity_apps/data_objects/data_objects_helper.rb', line 43 def self.current @current end |
.current=(current) ⇒ Object
47 48 49 |
# File 'lib/testcentricity_apps/data_objects/data_objects_helper.rb', line 47 def self.current=(current) @current = current end |