Class: OpenHAB::Core::Things::ThingUID

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

Overview

ThingUID represents a unique identifier for a Thing.

Instance Attribute Summary collapse

Attributes inherited from UID

#binding_id, #category

Method Summary

Methods inherited from AbstractUID

#==

Instance Attribute Details

#bridge_idsArray<string> (readonly)

Returns:



19
20
21
22
23
24
25
26
27
# File 'lib/openhab/core/things/thing_uid.rb', line 19

class ThingUID < UID
  extend Forwardable

  # @!attribute [r] thing
  # @return [Thing]
  def thing
    EntityLookup.lookup_thing(self)
  end
end

#idString (readonly)

Returns:

  • (String)


19
20
21
22
23
24
25
26
27
# File 'lib/openhab/core/things/thing_uid.rb', line 19

class ThingUID < UID
  extend Forwardable

  # @!attribute [r] thing
  # @return [Thing]
  def thing
    EntityLookup.lookup_thing(self)
  end
end

#thingThing (readonly)

Returns:



24
25
26
# File 'lib/openhab/core/things/thing_uid.rb', line 24

def thing
  EntityLookup.lookup_thing(self)
end