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.



134
135
136
137
# File 'lib/rspec/openhab/dsl/imports.rb', line 134

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.



132
133
134
# File 'lib/rspec/openhab/dsl/imports.rb', line 132

def bundle_context
  @bundle_context
end

#propertiesObject (readonly)

Returns the value of attribute properties.



132
133
134
# File 'lib/rspec/openhab/dsl/imports.rb', line 132

def properties
  @properties
end