Class: OpenHAB::Core::DTO::ItemChannelLinkDTO

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

Overview

Adds methods to core openHAB ItemChannelLinkDTO to make it more natural in Ruby

Instance Attribute Summary collapse

Instance Attribute Details

#channel_uidThings::ChannelUID (readonly)

Returns The UID of the channel that was linked or unlinked.

Returns:



27
28
29
# File 'lib/openhab/core/dto/item_channel_link.rb', line 27

def channel_uid
  Things::ChannelUID.new(channelUID)
end

#itemItem (readonly)

Returns The item that was linked or unlinked.

Returns:

  • (Item)

    The item that was linked or unlinked



19
20
21
# File 'lib/openhab/core/dto/item_channel_link.rb', line 19

def item
  EntityLookup.lookup_item(itemName)
end

#item_nameString (readonly)

Returns The name of the item that was linked or unlinked.

Returns:

  • (String)

    The name of the item that was linked or unlinked.



# File 'lib/openhab/core/dto/item_channel_link.rb', line 10