Class: LogMessage

Inherits:
Message show all
Defined in:
lib/test_driven_lighting/messages/log_message.rb

Overview

LogMessage - prints a message to the log (currently just whatever screen is running the listener)

Instance Attribute Summary

Attributes inherited from Message

#message

Instance Method Summary collapse

Methods inherited from Message

#message_type

Constructor Details

#initialize(message) ⇒ LogMessage

Returns a new instance of LogMessage.



6
7
8
# File 'lib/test_driven_lighting/messages/log_message.rb', line 6

def initialize message
  super
end

Instance Method Details

#processObject



10
11
12
13
# File 'lib/test_driven_lighting/messages/log_message.rb', line 10

def process
  content = message.fetch 'content'
  puts "%s %s" % [timestamp, content]
end