class Quby::Answers::Entities::Subscore

Subscore instances describe the subscore keys of answer#scores using score schema information.

Attributes

subschema[RW]

Public Class Methods

new(subschema:, score_hash:) click to toggle source
# File lib/quby/answers/entities/subscore.rb, line 19
def initialize(subschema:, score_hash:)
  self.subschema = subschema
  @score_hash = score_hash
end

Public Instance Methods

value() click to toggle source
# File lib/quby/answers/entities/subscore.rb, line 24
def value
  @score_hash[key]
end