Sha256: f94d8e09398ebcb35a95d75e341dffb6b5eced98dae0dae95133d8a4d8cd04b6

Contents?: true

Size: 459 Bytes

Versions: 62

Compression:

Stored size: 459 Bytes

Contents

require_relative 'suite_option'
require_relative 'test_suite'

module Inferno
  module Web
    module Serializers
      class TestSession < Serializer
        identifier :id

        field :test_suite_id
        association :suite_options, blueprint: SuiteOption

        field :test_suite do |session, _options|
          TestSuite.render_as_hash(session.test_suite, view: :full, suite_options: session.suite_options)
        end
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
inferno_core-0.6.1 lib/inferno/apps/web/serializers/test_session.rb
inferno_core-0.6.0 lib/inferno/apps/web/serializers/test_session.rb
inferno_core-0.5.4 lib/inferno/apps/web/serializers/test_session.rb
inferno_core-0.5.3 lib/inferno/apps/web/serializers/test_session.rb
inferno_core-0.5.2 lib/inferno/apps/web/serializers/test_session.rb
inferno_core-0.5.1 lib/inferno/apps/web/serializers/test_session.rb
inferno_core-0.5.0 lib/inferno/apps/web/serializers/test_session.rb
inferno_core-0.4.44 lib/inferno/apps/web/serializers/test_session.rb
inferno_core-0.4.43 lib/inferno/apps/web/serializers/test_session.rb
inferno_core-0.4.42 lib/inferno/apps/web/serializers/test_session.rb
inferno_core-0.4.41 lib/inferno/apps/web/serializers/test_session.rb
inferno_core-0.4.40 lib/inferno/apps/web/serializers/test_session.rb
inferno_core-0.4.39 lib/inferno/apps/web/serializers/test_session.rb
inferno_core-0.4.38 lib/inferno/apps/web/serializers/test_session.rb
inferno_core-0.4.35 lib/inferno/apps/web/serializers/test_session.rb
inferno_core-0.4.34 lib/inferno/apps/web/serializers/test_session.rb
inferno_core-0.4.33 lib/inferno/apps/web/serializers/test_session.rb
inferno_core-0.4.32 lib/inferno/apps/web/serializers/test_session.rb
inferno_core-0.4.31 lib/inferno/apps/web/serializers/test_session.rb
inferno_core-0.4.30 lib/inferno/apps/web/serializers/test_session.rb