Class: OpenHAB::Core::Events::ThingStatusInfoChangedEvent
- Inherits:
-
AbstractEvent
- Object
- AbstractEvent
- OpenHAB::Core::Events::ThingStatusInfoChangedEvent
- Defined in:
- lib/openhab/core/events/thing_status_info_event.rb
Overview
The AbstractEvent sent when a Thing’s status has changed.
Instance Attribute Summary collapse
-
#thing ⇒ Things::Thing
readonly
The thing that triggered this event.
Attributes inherited from AbstractEvent
Instance Method Summary collapse
Methods inherited from AbstractEvent
Instance Attribute Details
#thing ⇒ Things::Thing (readonly)
Returns The thing that triggered this event.
27 28 29 |
# File 'lib/openhab/core/events/thing_status_info_event.rb', line 27 def thing EntityLookup.lookup_thing(uid) end |
Instance Method Details
#inspect ⇒ String
32 33 34 35 36 37 |
# File 'lib/openhab/core/events/thing_status_info_event.rb', line 32 def inspect s = "#<OpenHAB::Core::Events::ThingStatusInfoChangedEvent thing=#{uid} " \ "status=#{status.inspect} was=#{was.inspect}" s += " source=#{source.inspect}" if source "#{s}>" end |