Class: OpenHAB::Core::Things::ItemChannelLink

Inherits:
Object
  • Object
show all
Defined in:
lib/openhab/core/things/item_channel_link.rb

Overview

Represents the link between an Item and a Thing's Channel.

Instance Attribute Summary collapse

Instance Attribute Details

#channel_uidChannelUID (readonly)

Returns:

[View source]

18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/openhab/core/things/item_channel_link.rb', line 18

class ItemChannelLink
  extend Forwardable

  def_delegator :linked_uid, :thing

  # @!attribute [r] item
  # @return [Item]
  def item
    DSL.items[item_name]
  end

  alias_method :channel_uid, :linked_uid
end

#itemItem (readonly)

Returns:

[View source]

25
26
27
# File 'lib/openhab/core/things/item_channel_link.rb', line 25

def item
  DSL.items[item_name]
end

#thingThing (readonly)

Returns:

[View source]

18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/openhab/core/things/item_channel_link.rb', line 18

class ItemChannelLink
  extend Forwardable

  def_delegator :linked_uid, :thing

  # @!attribute [r] item
  # @return [Item]
  def item
    DSL.items[item_name]
  end

  alias_method :channel_uid, :linked_uid
end