Class: OpenHAB::DSL::Events::WatchEvent
- Inherits:
-
Struct
- Object
- Struct
- OpenHAB::DSL::Events::WatchEvent
- Defined in:
- lib/openhab/dsl/events/watch_event.rb
Overview
Event object passed by a Rules::BuilderDSL#watch trigger.
Instance Attribute Summary collapse
-
#attachment ⇒ Object
readonly
The trigger's attachment.
-
#path ⇒ Pathname
readonly
The path that had an event.
-
#type ⇒ :created, ...
readonly
Type of change.
Instance Attribute Details
#attachment ⇒ Object (readonly)
Returns The trigger's attachment.
15 |
# File 'lib/openhab/dsl/events/watch_event.rb', line 15 WatchEvent = Struct.new(:type, :path, :attachment) |
#path ⇒ Pathname (readonly)
Returns The path that had an event.
15 |
# File 'lib/openhab/dsl/events/watch_event.rb', line 15 WatchEvent = Struct.new(:type, :path, :attachment) |
#type ⇒ :created, ... (readonly)
Returns Type of change.
15 |
# File 'lib/openhab/dsl/events/watch_event.rb', line 15 WatchEvent = Struct.new(:type, :path, :attachment) |