Class: Gauge::DataStoreFactory

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

Class Method Summary collapse

Class Method Details

.scenario_datastoreObject

Gets a datastore, that lives throughout a scenario execution This is purged after every scenario execution.

Examples:

DataStoreFactory.scenario_datastore.put("foo", {:name=>"foo"})
DataStoreFactory.scenario_datastore.get("foo")
=> {:name=>"foo"}


75
76
77
# File 'lib/datastore.rb', line 75

def self.scenario_datastore
  return @@scenario_datastore
end

.spec_datastoreObject

Gets a datastore, that lives throughout a specification execution This is purged after every specification execution.

Examples:

DataStoreFactory.scenario_datastore.put("foo", {:name=>"foo"})
DataStoreFactory.scenario_datastore.get("foo")
=> {:name=>"foo"}


65
66
67
# File 'lib/datastore.rb', line 65

def self.spec_datastore
  return @@spec_datastore
end

.suite_datastoreObject

Gets a datastore, that lives throughout the suite execution

Examples:

DataStoreFactory.suite_datastore.put("foo", {:name=>"foo"})
DataStoreFactory.suite_datastore.get("foo")
=> {:name=>"foo"}


55
56
57
# File 'lib/datastore.rb', line 55

def self.suite_datastore
  return @@suite_datastore
end