Class: OpenHAB::DSL::Imports::VolatileStorageService
- Inherits:
-
Object
- Object
- OpenHAB::DSL::Imports::VolatileStorageService
- Defined in:
- lib/rspec/openhab/dsl/imports.rb
Overview
don’t depend on org.openhab.core.test
Instance Method Summary collapse
- #get_storage(name) ⇒ Object
-
#initialize ⇒ VolatileStorageService
constructor
A new instance of VolatileStorageService.
Constructor Details
#initialize ⇒ VolatileStorageService
Returns a new instance of VolatileStorageService.
62 63 64 |
# File 'lib/rspec/openhab/dsl/imports.rb', line 62 def initialize @storages = {} end |
Instance Method Details
#get_storage(name) ⇒ Object
66 67 68 |
# File 'lib/rspec/openhab/dsl/imports.rb', line 66 def get_storage(name, *) @storages[name] ||= VolatileStorage.new end |