Module: OpenHAB::Core::Types::CommandDescription
- Defined in:
- lib/openhab/core/types/command_description.rb
Overview
Describes commands you can send to an item
Instance Attribute Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#options ⇒ Array<org.openhab.core.types.CommandOption> (readonly)
12 13 14 |
# File 'lib/openhab/core/types/command_description.rb', line 12 def options command_options end |
Instance Method Details
#inspect ⇒ String
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/openhab/core/types/command_description.rb', line 17 def inspect s = "#<OpenHAB::Core::Types::CommandDescription options=[" command_options.each_with_index do |o, i| s += ", " if i != 0 s += o.command.inspect s += " (#{o.label.inspect})" if o.command != o.label && !o.label.nil? end s += "]>" end |