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"}


63
64
65
# File 'lib/datastore.rb', line 63

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"}


53
54
55
# File 'lib/datastore.rb', line 53

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"}


43
44
45
# File 'lib/datastore.rb', line 43

def self.suite_datastore
  return @@suite_datastore
end