# File lib/msg-chumby-daemon/http-xml-server.rb, line 9 def process(request, response) response.start(200) do |head,out| # puts "Request for time received." head["Content-Type"] = "text/xml" current_time={'time' => [ Time.now.strftime("%H:%M:%S")], 'counter' => [$counter]} out.write(XmlSimple.xml_out( current_time,{'RootName' => "current_time"})); $counter+=1 end end