Class: OpenHAB::DSL::Sitemaps::SwitchBuilder
- Inherits:
-
WidgetBuilder
- Object
- WidgetBuilder
- OpenHAB::DSL::Sitemaps::SwitchBuilder
- Defined in:
- lib/openhab/dsl/sitemaps/builder.rb
Overview
Builds a Switch
element
Direct Known Subclasses
Instance Attribute Summary collapse
-
#mappings ⇒ Hash, ...
Mappings from command to label.
Attributes inherited from WidgetBuilder
#icon, #icon_colors, #item, #label, #label_colors, #static_icon, #value_colors, #visibilities
Method Summary
Methods inherited from WidgetBuilder
#icon_color, #label_color, #value_color, #visibility
Methods included from Core::EntityLookup
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class OpenHAB::Core::EntityLookup
Instance Attribute Details
#mappings ⇒ Hash, ...
Mappings from command to label
Keys can be any command, values are strings. If an array is given, the same value is used for both command and label.
288 289 290 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 288 def mappings @mappings end |