Class: OpenHAB::Core::Things::ThingTypeUID

Inherits:
UID show all
Defined in:
lib/openhab/core/things/thing_type_uid.rb

Overview

ThingTypeUID represents a unique identifier for a ThingType.

Instance Attribute Summary collapse

Attributes inherited from UID

#binding_id

Instance Method Summary collapse

Methods inherited from AbstractUID

#==

Instance Attribute Details

#categoryString? (readonly)

Returns:

  • (String, nil)


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/openhab/core/things/thing_type_uid.rb', line 33

class ThingTypeUID < UID
  extend Forwardable

  # @!method listed?
  #   @return [true, false]

  delegate %i[channel_group_definitions
              channel_definitions
              supported_bridge_type_uids
              category
              properties
              listed?] => :thing_type

  # @!attribute [r] thing_type
  # @return [ThingType]
  def thing_type
    ThingType.registry.get_thing_type(self)
  end
end

#channel_definitionsArray<ChannelDefinition> (readonly)

Returns:



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/openhab/core/things/thing_type_uid.rb', line 33

class ThingTypeUID < UID
  extend Forwardable

  # @!method listed?
  #   @return [true, false]

  delegate %i[channel_group_definitions
              channel_definitions
              supported_bridge_type_uids
              category
              properties
              listed?] => :thing_type

  # @!attribute [r] thing_type
  # @return [ThingType]
  def thing_type
    ThingType.registry.get_thing_type(self)
  end
end

#channel_group_definitionsArray<ChannelGroupDefinition> (readonly)



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/openhab/core/things/thing_type_uid.rb', line 33

class ThingTypeUID < UID
  extend Forwardable

  # @!method listed?
  #   @return [true, false]

  delegate %i[channel_group_definitions
              channel_definitions
              supported_bridge_type_uids
              category
              properties
              listed?] => :thing_type

  # @!attribute [r] thing_type
  # @return [ThingType]
  def thing_type
    ThingType.registry.get_thing_type(self)
  end
end

#idString (readonly)

Returns:

  • (String)


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/openhab/core/things/thing_type_uid.rb', line 33

class ThingTypeUID < UID
  extend Forwardable

  # @!method listed?
  #   @return [true, false]

  delegate %i[channel_group_definitions
              channel_definitions
              supported_bridge_type_uids
              category
              properties
              listed?] => :thing_type

  # @!attribute [r] thing_type
  # @return [ThingType]
  def thing_type
    ThingType.registry.get_thing_type(self)
  end
end

#propertiesHash<String, String> (readonly)

Returns:

  • (Hash<String, String>)


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/openhab/core/things/thing_type_uid.rb', line 33

class ThingTypeUID < UID
  extend Forwardable

  # @!method listed?
  #   @return [true, false]

  delegate %i[channel_group_definitions
              channel_definitions
              supported_bridge_type_uids
              category
              properties
              listed?] => :thing_type

  # @!attribute [r] thing_type
  # @return [ThingType]
  def thing_type
    ThingType.registry.get_thing_type(self)
  end
end

#supported_bridge_type_uidsArray<String> (readonly)

Returns:



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/openhab/core/things/thing_type_uid.rb', line 33

class ThingTypeUID < UID
  extend Forwardable

  # @!method listed?
  #   @return [true, false]

  delegate %i[channel_group_definitions
              channel_definitions
              supported_bridge_type_uids
              category
              properties
              listed?] => :thing_type

  # @!attribute [r] thing_type
  # @return [ThingType]
  def thing_type
    ThingType.registry.get_thing_type(self)
  end
end

#thing_typeThingType (readonly)

Returns:



48
49
50
# File 'lib/openhab/core/things/thing_type_uid.rb', line 48

def thing_type
  ThingType.registry.get_thing_type(self)
end

Instance Method Details

#listed?true, false

Returns:

  • (true, false)


39
40
41
42
43
44
# File 'lib/openhab/core/things/thing_type_uid.rb', line 39

delegate %i[channel_group_definitions
channel_definitions
supported_bridge_type_uids
category
properties
listed?] => :thing_type