Class: Inferno::Web::Controllers::TestSessions::LastTestRun
- Inherits:
-
Controller
- Object
- Hanami::Action
- Controller
- Inferno::Web::Controllers::TestSessions::LastTestRun
- Defined in:
- lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
Instance Method Summary collapse
Methods inherited from Controller
call, inherited, resource_class, resource_name
Instance Method Details
#handle(req, res) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb', line 8 def handle(req, res) test_run = test_runs_repo.last_test_run(req.params[:id]) res.body = if test_run.nil? nil else Inferno::Web::Serializers::TestRun.render(test_run) end end |