Class: Inferno::Web::Controllers::TestSessions::SessionData::Index

Inherits:
Controller
  • Object
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, resource_name

Class Method Details

.resource_classObject



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