Class: OpenHAB::Core::Events::ChannelTriggeredEvent
- Inherits:
-
AbstractEvent
- Object
- AbstractEvent
- OpenHAB::Core::Events::ChannelTriggeredEvent
- Defined in:
- lib/openhab/core/events/channel_triggered_event.rb
Overview
AbstractEvent sent when a channel triggers.
Instance Attribute Summary collapse
-
#channel ⇒ Things::Channel?
readonly
The channel that triggered this event.
-
#channel_uid ⇒ Things::ChannelUID
readonly
The UID of the Channel that triggered this event.
-
#event ⇒ String
readonly
The event data.
-
#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
#channel ⇒ Things::Channel? (readonly)
Returns The channel that triggered this event.
|
# File 'lib/openhab/core/events/channel_triggered_event.rb', line 18
|
#channel_uid ⇒ Things::ChannelUID (readonly)
Returns The UID of the Channel that triggered this event.
16 |
# File 'lib/openhab/core/events/channel_triggered_event.rb', line 16 alias_method :channel_uid, :get_channel |
#event ⇒ String (readonly)
Returns The event data.
|
# File 'lib/openhab/core/events/channel_triggered_event.rb', line 25
|
#thing ⇒ Things::Thing? (readonly)
Returns The thing that triggered this event.
23 |
# File 'lib/openhab/core/events/channel_triggered_event.rb', line 23 def_delegators :channel_uid, :thing, :channel |
Instance Method Details
#inspect ⇒ String
29 30 31 32 33 |
# File 'lib/openhab/core/events/channel_triggered_event.rb', line 29 def inspect s = "#<OpenHAB::Core::Events::ChannelTriggeredEvent channel=#{channel} event=#{event.inspect}" s += " source=#{source.inspect}" if source "#{s}>" end |