Module: ODBA

Defined in:
test/stub/odba.rb,
src/util/oddbconfig.rb,
src/util/persistence.rb,
ext/export/src/oddb_yaml.rb,
test/test_plugin/vaccines.rb

Defined Under Namespace

Classes: Cache, CacheStub, StorageStub, Stub

Class Method Summary (collapse)

Class Method Details

+ (Object) cache



42
43
44
# File 'test/stub/odba.rb', line 42

def ODBA.cache
  @cache ||= CacheStub.new
end

+ (Object) storage



45
46
47
# File 'test/stub/odba.rb', line 45

def ODBA.storage
  @storage ||= StorageStub.new
end

+ (Object) storage=(storage)



48
49
50
# File 'test/stub/odba.rb', line 48

def ODBA.storage=(storage)
  @storage = storage
end

+ (Object) transaction(&block)



39
40
41
# File 'test/stub/odba.rb', line 39

def ODBA.transaction(&block)
  block.call
end