Class: Stdout

Inherits:
Object
  • Object
show all
Defined in:
lib/xify/output/stdout.rb

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Stdout

Returns a new instance of Stdout.



4
5
# File 'lib/xify/output/stdout.rb', line 4

def initialize(config)
end

Instance Method Details

#process(event) ⇒ Object



7
8
9
# File 'lib/xify/output/stdout.rb', line 7

def process(event)
  puts "[#{event.args[:time] || Time.now.iso8601}] #{event.author}: #{event.message}"
end