Class: OpenHAB::DSL::Events::WatchEvent

Inherits:
Struct
  • Object
show all
Defined in:
lib/openhab/dsl/events/watch_event.rb

Overview

Event object passed by a Rules::BuilderDSL#watch trigger.

Instance Attribute Summary collapse

Instance Attribute Details

#attachmentObject (readonly)

Returns The trigger’s attachment.

Returns:

  • (Object)

    The trigger’s attachment



15
# File 'lib/openhab/dsl/events/watch_event.rb', line 15

WatchEvent = Struct.new(:type, :path, :attachment)

#pathPathname (readonly)

Returns The path that had an event.

Returns:

  • (Pathname)

    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.

Returns:

  • (:created, :modified, :deleted)

    Type of change



15
# File 'lib/openhab/dsl/events/watch_event.rb', line 15

WatchEvent = Struct.new(:type, :path, :attachment)