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