Class: Woodhouse::Watchdog::Client
- Inherits:
-
Object
- Object
- Woodhouse::Watchdog::Client
- Defined in:
- lib/woodhouse/watchdog.rb
Instance Method Summary collapse
- #detect_id ⇒ Object
-
#initialize(watchdog, id = nil) ⇒ Client
constructor
A new instance of Client.
- #report(name, message) ⇒ Object
Constructor Details
#initialize(watchdog, id = nil) ⇒ Client
Returns a new instance of Client.
121 122 123 124 |
# File 'lib/woodhouse/watchdog.rb', line 121 def initialize(watchdog, id = nil) @watchdog = watchdog @id = id || detect_id || Celluloid.uuid end |
Instance Method Details
#detect_id ⇒ Object
126 127 128 |
# File 'lib/woodhouse/watchdog.rb', line 126 def detect_id Celluloid.current_actor.object_id end |