Sha256: 406bb0a11b3f4c806e784ee08aeea70c361d1bc65bbaf24f270c76dbf0d24edd

Contents?: true

Size: 679 Bytes

Versions: 27

Compression:

Stored size: 679 Bytes

Contents

# frozen_string_literal: true

title 'SimpleQuestionnaireWithOutcome'

panel do
  title 'Simple questionnaire with outcome defined'

  question :v_1, type: :radio do
    title 'A simple question'
    description 'A simple instruction'
    option :a1, value: 0, description: 'Simple option 1'
    option :a2, value: 1, description: 'Simple option 2'
    option :a3, value: 2, description: 'Simple option 3'
    option :a4, value: 3, description: 'Simple option 4'
    option :a5, value: 4, description: 'Simple option 5'
  end
end

score :simple_score, label: 'SimpleScore', schema: [{key: :value, label: 'Score', export_key: :simple}] do
  {
    value: values('v_1').sum
  }
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
quby-5.4.0 spec/fixtures/simple_with_outcome.rb
quby-5.3.1 spec/fixtures/simple_with_outcome.rb
quby-5.3.0 spec/fixtures/simple_with_outcome.rb
quby-5.2.0 spec/fixtures/simple_with_outcome.rb
quby-5.1.3 spec/fixtures/simple_with_outcome.rb
quby-5.1.2 spec/fixtures/simple_with_outcome.rb
quby-5.1.1 spec/fixtures/simple_with_outcome.rb
quby-5.1.0 spec/fixtures/simple_with_outcome.rb
quby-5.0.5 spec/fixtures/simple_with_outcome.rb
quby-5.0.4 spec/fixtures/simple_with_outcome.rb
quby-5.0.3 spec/fixtures/simple_with_outcome.rb
quby-5.0.2 spec/fixtures/simple_with_outcome.rb
quby-5.0.1 spec/fixtures/simple_with_outcome.rb
quby-5.0.0 spec/fixtures/simple_with_outcome.rb
quby-4.0.4 spec/fixtures/simple_with_outcome.rb
quby-5.0.0.pre4 spec/fixtures/simple_with_outcome.rb
quby-5.0.0.pre3 spec/fixtures/simple_with_outcome.rb
quby-5.0.0.pre2 spec/fixtures/simple_with_outcome.rb
quby-5.0.0.pre1 spec/fixtures/simple_with_outcome.rb
quby-4.0.3 spec/fixtures/simple_with_outcome.rb