Sha256: ba27ddc1d8ee213bad0260a28182f33b7c4599a9854f714dc27d01868fd3437e

Contents?: true

Size: 612 Bytes

Versions: 9

Compression:

Stored size: 612 Bytes

Contents

# frozen_string_literal: true

module Quby
  module Questionnaires
    module Entities
      class ScoreCalculation
        attr_accessor :key, :label, :sbg_key, :options, :calculation

        def initialize(key, options, &block)
          @key = key
          @label = options[:label]
          @sbg_key = options[:sbg_key]
          @options = options
          @calculation = block
        end

        def score
          @options[:score]
        end

        def completion
          @options[:completion]
        end

        def action
          @options[:action]
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
quby-4.0.4 lib/quby/questionnaires/entities/score_calculation.rb
quby-4.0.3 lib/quby/questionnaires/entities/score_calculation.rb
quby-4.0.2 lib/quby/questionnaires/entities/score_calculation.rb
quby-4.0.1 lib/quby/questionnaires/entities/score_calculation.rb
quby-4.0.0 lib/quby/questionnaires/entities/score_calculation.rb
quby-3.2.2 lib/quby/questionnaires/entities/score_calculation.rb
quby-3.2.1 lib/quby/questionnaires/entities/score_calculation.rb
quby-3.2.0 lib/quby/questionnaires/entities/score_calculation.rb
quby-3.2.0.pre.pre1 lib/quby/questionnaires/entities/score_calculation.rb