Class: Woodchuck::Output::ZeroMQ
- Inherits:
-
Woodchuck::Output
- Object
- Woodchuck::Output
- Woodchuck::Output::ZeroMQ
- Defined in:
- lib/woodchuck/output/zeromq.rb
Instance Attribute Summary
Attributes inherited from Woodchuck::Output
Instance Method Summary collapse
- #handle(event) ⇒ Object
-
#initialize ⇒ ZeroMQ
constructor
A new instance of ZeroMQ.
Constructor Details
#initialize ⇒ ZeroMQ
Returns a new instance of ZeroMQ.
4 5 6 7 |
# File 'lib/woodchuck/output/zeromq.rb', line 4 def initialize super @type = :zeromq end |
Instance Method Details
#handle(event) ⇒ Object
9 10 11 |
# File 'lib/woodchuck/output/zeromq.rb', line 9 def handle(event) @logger.info event., event.to_hash end |