Class: Hallmonitor::Outputter
- Inherits:
-
Object
- Object
- Hallmonitor::Outputter
- Defined in:
- lib/hallmonitor/outputter.rb
Overview
Direct Known Subclasses
Hallmonitor::Outputters::DogstatsdOutputter, Hallmonitor::Outputters::IOOutputter, Hallmonitor::Outputters::Influxdb, Hallmonitor::Outputters::NewRelic, Hallmonitor::Outputters::StatsdOutputter
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Outputter
constructor
Initializes a new Outputter outputter.
-
#process(event) ⇒ Object
Processes an event.
Constructor Details
#initialize(name) ⇒ Outputter
Initializes a new Outputter outputter
9 10 11 12 |
# File 'lib/hallmonitor/outputter.rb', line 9 def initialize(name) fail(ArgumentError, 'Outputter expects a name') if name.nil? @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/hallmonitor/outputter.rb', line 4 def name @name end |
Instance Method Details
#process(event) ⇒ Object
Processes an event. Child classes should implement this to output events
16 17 18 |
# File 'lib/hallmonitor/outputter.rb', line 16 def process(event) # Nothing end |