Sha256: 1a61b5e7f796c23909ece78c93c7bf6310af40d49c11d81dfed411cfcee015fc

Contents?: true

Size: 613 Bytes

Versions: 36

Compression:

Stored size: 613 Bytes

Contents

module Inferno
  module Web
    module Controllers
      module TestSessions
        module Results
          class Index < Controller
            include Import[test_sessions_repo: 'repositories.test_sessions']

            def call(params)
              self.body =
                if params[:all] == 'true'
                  serialize(test_sessions_repo.results_for_test_session(params[:test_session_id]))
                else
                  serialize(repo.current_results_for_test_session(params[:test_session_id]))
                end
            end
          end
        end
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
inferno_core-0.1.3 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.1.3.pre2 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.1.3.pre lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.1.2 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.1.2.pre lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.1.1 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.1.1.pre lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.1.0 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.1.0.pre lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.0.8 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.0.8.pre2 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.0.8.pre lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.0.7 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.0.6 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.0.5 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.0.4 lib/inferno/apps/web/controllers/test_sessions/results/index.rb