Class: TestCentricity::DataManager

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

Class Method Summary collapse

Class Method Details

.find_data_object(data_object) ⇒ Object



94
95
96
# File 'lib/testcentricity_web.rb', line 94

def self.find_data_object(data_object)
  @data_objects[data_object]
end

.loaded?Boolean

Have all DataObjects been registered?

Examples:

TestCentricity::DataManager.loaded?

Returns:

  • (Boolean)

    true if all DataObjects have been registered



104
105
106
# File 'lib/testcentricity_web.rb', line 104

def self.loaded?
  !@data_objects.empty?
end

.register_data_objects(data) ⇒ Object



90
91
92
# File 'lib/testcentricity_web.rb', line 90

def self.register_data_objects(data)
  @data_objects = data
end