Class: Ask::Agent::Evaluator::Dimension
- Inherits:
-
Data
- Object
- Data
- Ask::Agent::Evaluator::Dimension
- Defined in:
- lib/ask/agent/evaluator.rb
Overview
A single dimension in the evaluation rubric.
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#weight ⇒ Object
readonly
Returns the value of attribute weight.
Instance Method Summary collapse
-
#initialize(name:, description:, weight: 1) ⇒ Dimension
constructor
A new instance of Dimension.
Constructor Details
#initialize(name:, description:, weight: 1) ⇒ Dimension
Returns a new instance of Dimension.
21 22 23 |
# File 'lib/ask/agent/evaluator.rb', line 21 def initialize(name:, description:, weight: 1) super(name: name, description: description, weight: weight) end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description
20 21 22 |
# File 'lib/ask/agent/evaluator.rb', line 20 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name
20 21 22 |
# File 'lib/ask/agent/evaluator.rb', line 20 def name @name end |
#weight ⇒ Object (readonly)
Returns the value of attribute weight
20 21 22 |
# File 'lib/ask/agent/evaluator.rb', line 20 def weight @weight end |