Class: OpenHAB::DSL::Things::Builder
- Inherits:
-
Object
- Object
- OpenHAB::DSL::Things::Builder
- Defined in:
- lib/openhab/dsl/things/builder.rb
Overview
A thing builder allows you to dynamically create openHAB things at runtime. This can be useful either to create things as soon as the script loads, or even later based on a rule executing.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#bridge ⇒ Object
Create a new Bridge.
-
#initialize(provider, update: false) ⇒ Builder
constructor
A new instance of Builder.
-
#thing ⇒ Object
Create a new Thing.
Constructor Details
Instance Attribute Details
Instance Method Details
#bridge ⇒ Object
Create a new Bridge
80 81 82 |
# File 'lib/openhab/dsl/things/builder.rb', line 80 def bridge(...) build(BridgeBuilder, ...) end |
#thing ⇒ Object
Create a new Thing
86 87 88 |
# File 'lib/openhab/dsl/things/builder.rb', line 86 def thing(...) build(ThingBuilder, ...) end |