Class: OpenHAB::DSL::Imports::ComponentContext

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bundle_context) ⇒ ComponentContext

Returns a new instance of ComponentContext.



128
129
130
131
# File 'lib/rspec/openhab/dsl/imports.rb', line 128

def initialize(bundle_context)
  @properties = java.util.Hashtable.new
  @bundle_context = bundle_context
end

Instance Attribute Details

#bundle_contextObject (readonly)

Returns the value of attribute bundle_context.



126
127
128
# File 'lib/rspec/openhab/dsl/imports.rb', line 126

def bundle_context
  @bundle_context
end

#propertiesObject (readonly)

Returns the value of attribute properties.



126
127
128
# File 'lib/rspec/openhab/dsl/imports.rb', line 126

def properties
  @properties
end