From 432d4042fc263b6d38712545a2c04e09fa2d1a73 Mon Sep 17 00:00:00 2001 From: Angeleen MCDONNELL Wilson Date: Thu, 2 Jul 2020 04:04:00 +0000 Subject: [PATCH] Done. --- app/application.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/app/application.rb b/app/application.rb index e69de29bb..1a03264dc 100644 --- a/app/application.rb +++ b/app/application.rb @@ -0,0 +1,17 @@ +class Application + + def call(env) + resp = Rack::Response.new + + time = Time.now.hour + + time < 12 ? greeting = "Good Morning!" : greeting = "Good Afternoon!" + + resp.write greeting + + + resp.finish + + end + +end \ No newline at end of file