Class: OpenHAB::DSL::Things::BridgeBuilder
- Inherits:
-
ThingBuilder
- Object
- ThingBuilder
- OpenHAB::DSL::Things::BridgeBuilder
- 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
-
#bridge(*args, **kwargs, &block) ⇒ Object
Create a new Bridge with this Bridge as its Bridge.
-
#thing(*args, **kwargs, &block) ⇒ Object
Create a new Thing with this Bridge as its Bridge.
Methods inherited from ThingBuilder
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 |