class Gauge::DataStoreFactory

@api public

Public Class Methods

scenario_datastore() click to toggle source

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

DataStoreFactory.scenario_datastore.put("foo", {:name=>"foo"})
DataStoreFactory.scenario_datastore.get("foo")
=> {:name=>"foo"}
# File lib/datastore.rb, line 63
def self.scenario_datastore
  return @@scenario_datastore
end
spec_datastore() click to toggle source

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

DataStoreFactory.scenario_datastore.put("foo", {:name=>"foo"})
DataStoreFactory.scenario_datastore.get("foo")
=> {:name=>"foo"}
# File lib/datastore.rb, line 53
def self.spec_datastore
  return @@spec_datastore
end
suite_datastore() click to toggle source

Gets a datastore, that lives throughout the suite execution @example

DataStoreFactory.suite_datastore.put("foo", {:name=>"foo"})
DataStoreFactory.suite_datastore.get("foo")
=> {:name=>"foo"}
# File lib/datastore.rb, line 43
def self.suite_datastore
  return @@suite_datastore
end