Exception: Quby::Answers::Services::ScoreCalculator::MissingAnswerValues

Inherits:
StandardError
  • Object
show all
Defined in:
lib/quby/answers/services/score_calculator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, questionnaire_key:, values:, missing:) ⇒ MissingAnswerValues

Returns a new instance of MissingAnswerValues.



15
16
17
18
19
20
# File 'lib/quby/answers/services/score_calculator.rb', line 15

def initialize(msg = nil, questionnaire_key:, values:, missing:)
  super(msg)
  @questionnaire_key = questionnaire_key
  @values = values
  @missing = missing
end

Instance Attribute Details

#missingObject (readonly)

Returns the value of attribute missing.



13
14
15
# File 'lib/quby/answers/services/score_calculator.rb', line 13

def missing
  @missing
end

#questionnaire_keyObject (readonly)

Returns the value of attribute questionnaire_key.



13
14
15
# File 'lib/quby/answers/services/score_calculator.rb', line 13

def questionnaire_key
  @questionnaire_key
end

#valuesObject (readonly)

Returns the value of attribute values.



13
14
15
# File 'lib/quby/answers/services/score_calculator.rb', line 13

def values
  @values
end