class Hallmonitor::Outputter
An {Outputter} is an object that can process {Hallmonitor::Event}s
Attributes
name[R]
Public Class Methods
new(name)
click to toggle source
Initializes a new Outputter
@param name [Object] Probably a string or symbol, the name of this outputter
# File lib/hallmonitor/outputter.rb, line 9 def initialize(name) fail(ArgumentError, 'Outputter expects a name') if name.nil? @name = name end
Public Instance Methods
process(event)
click to toggle source
Processes an event. Child classes should implement this to output events @param event [Event] the event to process
# File lib/hallmonitor/outputter.rb, line 16 def process(event) # Nothing end