Class: OpenHAB::Core::Events::ItemEvent

Inherits:
AbstractEvent show all
Defined in:
lib/openhab/core/events/item_event.rb

Overview

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

Instance Attribute Summary collapse

Attributes inherited from AbstractEvent

#attachment

Method Summary

Methods inherited from AbstractEvent

#inspect

Instance Attribute Details

#itemItem (readonly)

Returns The item that triggered this event.

Returns:

  • (Item)

    The item that triggered this event.



16
17
18
# File 'lib/openhab/core/events/item_event.rb', line 16

def item
  EntityLookup.lookup_item(item_name)
end