Class: Inferno::Web::Controllers::TestSuites::Show
- Inherits:
-
Controller
- Object
- Hanami::Action
- Controller
- Inferno::Web::Controllers::TestSuites::Show
- Defined in:
- lib/inferno/apps/web/controllers/test_suites/show.rb
Instance Method Summary collapse
Methods inherited from Controller
call, inherited, resource_class, resource_name
Instance Method Details
#handle(req, res) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/inferno/apps/web/controllers/test_suites/show.rb', line 6 def handle(req, res) test_suite = repo.find(req.params[:id]) halt 404 if test_suite.nil? res.body = serialize(test_suite, view: :full) end |