Class: OpenHAB::Core::Things::ChannelGroupType

Inherits:
AbstractDescriptionType show all
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

Attributes inherited from AbstractDescriptionType

#description, #label

Instance Method Summary collapse

Instance Attribute Details

#categoryString? (readonly)

Returns:

  • (String, nil)


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_definitionsArray<ChannelDefinition> (readonly)

Returns:



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

#uidChannelGroupTypeUID (readonly)

Returns:



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

#inspectString

Returns:

  • (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_sString

Returns:

  • (String)


39
40
41
# File 'lib/openhab/core/things/channel_group_type.rb', line 39

def to_s
  uid.to_s
end