Sha256: 0e1d2a83afab7c1c886c7f278c2a3acc56a2d1aade563e2724f067b1f842db4a

Contents?: true

Size: 852 Bytes

Versions: 1

Compression:

Stored size: 852 Bytes

Contents

module Inferno
  module Web
    module Serializers
      class TestSuite < Serializer
        view :summary do
          identifier :id
          field :title
          field :short_title
          field :description
          field :short_description
          field :input_instructions
          field :test_count
          field :version
          association :suite_options, blueprint: SuiteOption
          association :presets, view: :summary, blueprint: Preset
        end

        view :full do
          include_view :summary
          field :test_groups do |suite, options|
            TestGroup.render_as_hash(suite.groups(options[:suite_options]))
          end
          field :configuration_messages
          field :available_inputs, name: :inputs, extractor: HashValueExtractor, blueprint: Input
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
inferno_core-0.3.5 lib/inferno/apps/web/serializers/test_suite.rb