Class: WatcherEvent
Overview
Encodes the information of an event that was triggered.
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#watcher ⇒ Object
Returns the value of attribute watcher.
Instance Method Summary collapse
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
8 9 10 |
# File 'lib/watcher_event.rb', line 8 def @message end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
6 7 8 |
# File 'lib/watcher_event.rb', line 6 def @timestamp end |
#watcher ⇒ Object
Returns the value of attribute watcher.
7 8 9 |
# File 'lib/watcher_event.rb', line 7 def watcher @watcher end |
Instance Method Details
#to_xml ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/watcher_event.rb', line 10 def to_xml builder = Builder::XmlMarkup.new() builder.instruct! builder.event do builder.() builder.() builder.watcher do builder.name(watcher.name) builder.watcher_type(watcher.class.name) end end end |