Class: OpenHAB::DSL::Things::BridgeBuilder

Inherits:
ThingBuilder show all
Defined in:
lib/openhab/dsl/things/builder.rb

Overview

The BridgeBuilder DSL allows you to customize a thing

Instance Attribute Summary

Attributes inherited from ThingBuilder

#bridge_uid, #channels, #config, #enabled, #label, #location, #thing_type_uid, #uid

Instance Method Summary collapse

Methods inherited from ThingBuilder

#channel, #initialize

Constructor Details

This class inherits a constructor from OpenHAB::DSL::Things::ThingBuilder

Instance Method Details

#bridge(*args, **kwargs, &block) ⇒ Object

Create a new Bridge with this Bridge as its Bridge



226
227
228
# File 'lib/openhab/dsl/things/builder.rb', line 226

def bridge(*args, **kwargs, &block)
  super(*args, bridge: self, **kwargs, &block)
end

#thing(*args, **kwargs, &block) ⇒ Object

Create a new Thing with this Bridge as its Bridge



232
233
234
# File 'lib/openhab/dsl/things/builder.rb', line 232

def thing(*args, **kwargs, &block)
  super(*args, bridge: self, **kwargs, &block)
end