Class: OpenHAB::Core::DTO::ItemChannelLinkDTO
- Inherits:
- 
      Object
      
        - Object
- OpenHAB::Core::DTO::ItemChannelLinkDTO
 
- 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
- 
  
    
      #channel_uid  ⇒ Things::ChannelUID 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    The UID of the channel that was linked or unlinked. 
- 
  
    
      #item  ⇒ Item 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    The item that was linked or unlinked. 
- 
  
    
      #item_name  ⇒ String 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    The name of the item that was linked or unlinked. 
Instance Method Summary collapse
Instance Attribute Details
#channel_uid ⇒ Things::ChannelUID (readonly)
Returns The UID of the channel that was linked or unlinked.
| 27 28 29 | # File 'lib/openhab/core/dto/item_channel_link.rb', line 27 def channel_uid Things::ChannelUID.new(channelUID) end | 
#item ⇒ Item (readonly)
Returns 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_name ⇒ String (readonly)
Returns The name of the item that was linked or unlinked.
|  | # File 'lib/openhab/core/dto/item_channel_link.rb', line 10
 | 
Instance Method Details
#to_s ⇒ String
| 32 33 34 | # File 'lib/openhab/core/dto/item_channel_link.rb', line 32 def to_s "#{item_name} -> #{channelUID}" end | 
 
          