Class: OpenHAB::Core::Things::ChannelGroupDefinition
- Inherits:
-
Object
- Object
- OpenHAB::Core::Things::ChannelGroupDefinition
- Defined in:
- lib/openhab/core/things/channel_group_definition.rb
Overview
ChannelGroupDefinition is a part of a ThingType that represents a set of channels
Instance Attribute Summary collapse
- #channel_group_type ⇒ ChannelGroupType readonly
- #description ⇒ String? readonly
- #id ⇒ String readonly
- #label ⇒ String? readonly
Instance Method Summary collapse
Instance Attribute Details
#channel_group_type ⇒ ChannelGroupType (readonly)
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/openhab/core/things/channel_group_definition.rb', line 28 class ChannelGroupDefinition extend Forwardable alias_method :channel_group_type_uid, :type_uid delegate channel_group_type: :channel_group_type_uid # @return [String] def inspect r = "#<OpenHAB::Core::Things::ChannelGroupDefinition #{id}" r += " channel_group_type_uid=#{channel_group_type_uid.inspect}" r += " #{label.inspect}" if label r += " description=#{description.inspect}" if description "#{r}>" end # @return [String] def to_s id.to_s end end |
#description ⇒ String? (readonly)
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/openhab/core/things/channel_group_definition.rb', line 28 class ChannelGroupDefinition extend Forwardable alias_method :channel_group_type_uid, :type_uid delegate channel_group_type: :channel_group_type_uid # @return [String] def inspect r = "#<OpenHAB::Core::Things::ChannelGroupDefinition #{id}" r += " channel_group_type_uid=#{channel_group_type_uid.inspect}" r += " #{label.inspect}" if label r += " description=#{description.inspect}" if description "#{r}>" end # @return [String] def to_s id.to_s end end |
#id ⇒ String (readonly)
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/openhab/core/things/channel_group_definition.rb', line 28 class ChannelGroupDefinition extend Forwardable alias_method :channel_group_type_uid, :type_uid delegate channel_group_type: :channel_group_type_uid # @return [String] def inspect r = "#<OpenHAB::Core::Things::ChannelGroupDefinition #{id}" r += " channel_group_type_uid=#{channel_group_type_uid.inspect}" r += " #{label.inspect}" if label r += " description=#{description.inspect}" if description "#{r}>" end # @return [String] def to_s id.to_s end end |
#label ⇒ String? (readonly)
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/openhab/core/things/channel_group_definition.rb', line 28 class ChannelGroupDefinition extend Forwardable alias_method :channel_group_type_uid, :type_uid delegate channel_group_type: :channel_group_type_uid # @return [String] def inspect r = "#<OpenHAB::Core::Things::ChannelGroupDefinition #{id}" r += " channel_group_type_uid=#{channel_group_type_uid.inspect}" r += " #{label.inspect}" if label r += " description=#{description.inspect}" if description "#{r}>" end # @return [String] def to_s id.to_s end end |
Instance Method Details
#inspect ⇒ String
36 37 38 39 40 41 42 |
# File 'lib/openhab/core/things/channel_group_definition.rb', line 36 def inspect r = "#<OpenHAB::Core::Things::ChannelGroupDefinition #{id}" r += " channel_group_type_uid=#{channel_group_type_uid.inspect}" r += " #{label.inspect}" if label r += " description=#{description.inspect}" if description "#{r}>" end |
#to_s ⇒ String
45 46 47 |
# File 'lib/openhab/core/things/channel_group_definition.rb', line 45 def to_s id.to_s end |