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.



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