Class: OpenHAB::Core::Things::ChannelGroupDefinition

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

Instance Method Summary collapse

Instance Attribute Details

#channel_group_typeChannelGroupType (readonly)

Returns:



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

#channel_group_type_uidChannelGroupTypeUID (readonly)

Returns:



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

#descriptionString? (readonly)

Returns:

  • (String, nil)


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

#idString (readonly)

Returns:

  • (String)


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

#labelString? (readonly)

Returns:

  • (String, nil)


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

#inspectString

Returns:

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

Returns:

  • (String)


45
46
47
# File 'lib/openhab/core/things/channel_group_definition.rb', line 45

def to_s
  id.to_s
end