Class: Psychometric::Result
- Inherits:
-
Object
- Object
- Psychometric::Result
- Defined in:
- lib/psychometric/result.rb
Overview
# Result
A Result respresents a Subject undergoing an Assessment by a Provider and will typically contain one or more Values. If there is a numerical value by which Results can be ranked it will be assigned to ‘aggregate`.
Instance Attribute Summary collapse
-
#aggregate ⇒ Object
Returns the value of attribute aggregate.
-
#assessment ⇒ Object
Returns the value of attribute assessment.
-
#subject ⇒ Object
Returns the value of attribute subject.
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(values = {}) ⇒ Result
constructor
A new instance of Result.
- #to_s ⇒ Object
Constructor Details
#initialize(values = {}) ⇒ Result
Returns a new instance of Result.
10 11 12 |
# File 'lib/psychometric/result.rb', line 10 def initialize(values = {}) @values = values end |
Instance Attribute Details
#aggregate ⇒ Object
Returns the value of attribute aggregate.
8 9 10 |
# File 'lib/psychometric/result.rb', line 8 def aggregate @aggregate end |
#assessment ⇒ Object
Returns the value of attribute assessment.
8 9 10 |
# File 'lib/psychometric/result.rb', line 8 def assessment @assessment end |
#subject ⇒ Object
Returns the value of attribute subject.
8 9 10 |
# File 'lib/psychometric/result.rb', line 8 def subject @subject end |
#values ⇒ Object
Returns the value of attribute values.
8 9 10 |
# File 'lib/psychometric/result.rb', line 8 def values @values end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/psychometric/result.rb', line 14 def to_s "\#<Psychometric::Result subject: \"#{@subject}\" values: #{@values}>" end |