Class: TestCentricity::DataObject
- Defined in:
- lib/testcentricity_web/data_objects_helper.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
-
#current ⇒ Object
Returns the value of attribute current.
-
#hash_table ⇒ Object
Returns the value of attribute hash_table.
Class Method Summary collapse
- .current ⇒ Object
- .current=(current) ⇒ Object
-
.set_current(current) ⇒ Object
deprecated
Deprecated.
Please use #current= instead
Instance Method Summary collapse
-
#initialize(data) ⇒ DataObject
constructor
A new instance of DataObject.
Constructor Details
#initialize(data) ⇒ DataObject
Returns a new instance of DataObject.
16 17 18 |
# File 'lib/testcentricity_web/data_objects_helper.rb', line 16 def initialize(data) @hash_table = data end |
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context.
13 14 15 |
# File 'lib/testcentricity_web/data_objects_helper.rb', line 13 def context @context end |
#current ⇒ Object
Returns the value of attribute current.
12 13 14 |
# File 'lib/testcentricity_web/data_objects_helper.rb', line 12 def current @current end |
#hash_table ⇒ Object
Returns the value of attribute hash_table.
14 15 16 |
# File 'lib/testcentricity_web/data_objects_helper.rb', line 14 def hash_table @hash_table end |
Class Method Details
.current ⇒ Object
26 27 28 |
# File 'lib/testcentricity_web/data_objects_helper.rb', line 26 def self.current @current end |
.current=(current) ⇒ Object
30 31 32 |
# File 'lib/testcentricity_web/data_objects_helper.rb', line 30 def self.current=(current) @current = current end |
.set_current(current) ⇒ Object
Deprecated.
Please use #current= instead
21 22 23 24 |
# File 'lib/testcentricity_web/data_objects_helper.rb', line 21 def self.set_current(current) warn "[DEPRECATION] 'TestCentricity::DataObject.set_current' is deprecated. Please use 'current=' instead." @current = current end |