Class: OpenHAB::Core::Things::ChannelGroupType
- Inherits:
-
AbstractDescriptionType
- Object
- AbstractDescriptionType
- OpenHAB::Core::Things::ChannelGroupType
- Defined in:
- lib/openhab/core/things/channel_group_type.rb
Overview
ChannelGroupType contains a list of channel definitions and further meta information such as label and description, which are generally used by user interfaces.
Instance Attribute Summary collapse
- #category ⇒ String? readonly
- #channel_definitions ⇒ Array<ChannelDefinition> readonly
- #uid ⇒ ChannelGroupTypeUID readonly
Attributes inherited from AbstractDescriptionType
Instance Method Summary collapse
Instance Attribute Details
#category ⇒ String? (readonly)
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/openhab/core/things/channel_group_type.rb', line 23 class ChannelGroupType < AbstractDescriptionType class << self # @!visibility private def registry @registry ||= OSGi.service("org.openhab.core.thing.type.ChannelGroupTypeRegistry") end end # @return [String] def inspect r = "#<OpenHAB::Core::Things::ChannelGroupType #{uid}" r += " category=#{category.inspect}" if category "#{r}>" end # @return [String] def to_s uid.to_s end end |
#channel_definitions ⇒ Array<ChannelDefinition> (readonly)
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/openhab/core/things/channel_group_type.rb', line 23 class ChannelGroupType < AbstractDescriptionType class << self # @!visibility private def registry @registry ||= OSGi.service("org.openhab.core.thing.type.ChannelGroupTypeRegistry") end end # @return [String] def inspect r = "#<OpenHAB::Core::Things::ChannelGroupType #{uid}" r += " category=#{category.inspect}" if category "#{r}>" end # @return [String] def to_s uid.to_s end end |
#uid ⇒ ChannelGroupTypeUID (readonly)
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/openhab/core/things/channel_group_type.rb', line 23 class ChannelGroupType < AbstractDescriptionType class << self # @!visibility private def registry @registry ||= OSGi.service("org.openhab.core.thing.type.ChannelGroupTypeRegistry") end end # @return [String] def inspect r = "#<OpenHAB::Core::Things::ChannelGroupType #{uid}" r += " category=#{category.inspect}" if category "#{r}>" end # @return [String] def to_s uid.to_s end end |
Instance Method Details
#inspect ⇒ String
32 33 34 35 36 |
# File 'lib/openhab/core/things/channel_group_type.rb', line 32 def inspect r = "#<OpenHAB::Core::Things::ChannelGroupType #{uid}" r += " category=#{category.inspect}" if category "#{r}>" end |
#to_s ⇒ String
39 40 41 |
# File 'lib/openhab/core/things/channel_group_type.rb', line 39 def to_s uid.to_s end |