Class: OpenHAB::Core::Things::ChannelTypeUID

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

Overview

ChannelTypeUID represents a unique identifier for a ChannelType.

Instance Attribute Summary collapse

Attributes inherited from UID

#binding_id

Instance Method Summary collapse

Methods inherited from AbstractUID

#==

Instance Attribute Details

#auto_update_policy:veto, ... (readonly)

Returns:

  • (:veto, :default, :recommend, nil)


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

class ChannelTypeUID < UID
  extend Forwardable

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

  delegate %i[item_type
              tags
              category
              auto_update_policy
              command_description
              event_description
              state_description
              advanced?] => :channel_type

  # @!attribute [r] channel_type
  # @return [ChannelType]
  def channel_type
    ChannelType.registry.get_channel_type(self)
  end
end

#categoryString? (readonly)

Returns:

  • (String, nil)


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

class ChannelTypeUID < UID
  extend Forwardable

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

  delegate %i[item_type
              tags
              category
              auto_update_policy
              command_description
              event_description
              state_description
              advanced?] => :channel_type

  # @!attribute [r] channel_type
  # @return [ChannelType]
  def channel_type
    ChannelType.registry.get_channel_type(self)
  end
end

#channel_typeChannelType (readonly)

Returns:



47
48
49
# File 'lib/openhab/core/things/channel_type_uid.rb', line 47

def channel_type
  ChannelType.registry.get_channel_type(self)
end

#idString (readonly)

Returns:

  • (String)


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

class ChannelTypeUID < UID
  extend Forwardable

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

  delegate %i[item_type
              tags
              category
              auto_update_policy
              command_description
              event_description
              state_description
              advanced?] => :channel_type

  # @!attribute [r] channel_type
  # @return [ChannelType]
  def channel_type
    ChannelType.registry.get_channel_type(self)
  end
end

#item_typeString (readonly)

Returns:

  • (String)


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

class ChannelTypeUID < UID
  extend Forwardable

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

  delegate %i[item_type
              tags
              category
              auto_update_policy
              command_description
              event_description
              state_description
              advanced?] => :channel_type

  # @!attribute [r] channel_type
  # @return [ChannelType]
  def channel_type
    ChannelType.registry.get_channel_type(self)
  end
end

#tagsSet<String> (readonly)

Returns:

  • (Set<String>)


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

class ChannelTypeUID < UID
  extend Forwardable

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

  delegate %i[item_type
              tags
              category
              auto_update_policy
              command_description
              event_description
              state_description
              advanced?] => :channel_type

  # @!attribute [r] channel_type
  # @return [ChannelType]
  def channel_type
    ChannelType.registry.get_channel_type(self)
  end
end

Instance Method Details

#advanced?true, false

Returns:

  • (true, false)


36
37
38
39
40
41
42
43
# File 'lib/openhab/core/things/channel_type_uid.rb', line 36

delegate %i[item_type
tags
category
auto_update_policy
command_description
event_description
state_description
advanced?] => :channel_type