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.



75
76
77
# File 'lib/rspec/openhab/dsl/imports.rb', line 75

def initialize
  @storages = {}
end

Instance Method Details

#get_storage(name) ⇒ Object



79
80
81
# File 'lib/rspec/openhab/dsl/imports.rb', line 79

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