Sha256: 53b8172bb1fd6e51a3be84273619faa2c941f5ed351c3b5e991c0d0bde1f261f
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
module Inferno module Web module Serializers class TestGroup < Serializer identifier :id field :short_id field :title field :short_title field :description field :short_description field :input_instructions field :test_count field :run_as_group?, name: :run_as_group field :user_runnable?, name: :user_runnable field :optional?, name: :optional field :test_groups do |group, options| suite_options = options[:suite_options] TestGroup.render_as_hash(group.groups(suite_options), suite_options: suite_options) end field :tests do |group, options| suite_options = options[:suite_options] Test.render_as_hash(group.tests(suite_options), suite_options: suite_options) end field :inputs do |group, options| suite_options = options[:suite_options] Input.render_as_hash(group.available_inputs(suite_options).values) end field :output_definitions, name: :outputs, extractor: HashValueExtractor end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
inferno_core-0.3.7 | lib/inferno/apps/web/serializers/test_group.rb |
inferno_core-0.3.6 | lib/inferno/apps/web/serializers/test_group.rb |