Class: Inferno::Web::Controllers::TestSessions::SessionData::Index
- Inherits:
-
Controller
- Object
- Hanami::Action
- Controller
- Inferno::Web::Controllers::TestSessions::SessionData::Index
show all
- Defined in:
- lib/inferno/apps/web/controllers/test_sessions/session_data/index.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Controller
call, inherited, resource_name
Class Method Details
.resource_class ⇒ Object
11
12
13
|
# File 'lib/inferno/apps/web/controllers/test_sessions/session_data/index.rb', line 11
def self.resource_class
'SessionData'
end
|
Instance Method Details
#handle(req, res) ⇒ Object
15
16
17
|
# File 'lib/inferno/apps/web/controllers/test_sessions/session_data/index.rb', line 15
def handle(req, res)
res.body = serialize(session_data_repo.get_all_from_session(req.params[:id]))
end
|