Class: OpenHAB::DSL::Imports::VolatileStorageService

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/openhab/dsl/imports.rb

Overview

don’t depend on org.openhab.core.test

Instance Method Summary collapse

Constructor Details

#initializeVolatileStorageService

Returns a new instance of VolatileStorageService.



55
56
57
# File 'lib/rspec/openhab/dsl/imports.rb', line 55

def initialize
  @storages = {}
end

Instance Method Details

#get_storage(name) ⇒ Object



59
60
61
# File 'lib/rspec/openhab/dsl/imports.rb', line 59

def get_storage(name, *)
  @storages[name] ||= VolatileStorage.new
end