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.



115
116
117
118
# File 'lib/rspec/openhab/dsl/imports.rb', line 115

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.



113
114
115
# File 'lib/rspec/openhab/dsl/imports.rb', line 113

def bundle_context
  @bundle_context
end

#propertiesObject (readonly)

Returns the value of attribute properties.



113
114
115
# File 'lib/rspec/openhab/dsl/imports.rb', line 113

def properties
  @properties
end