Class: Ask::Agent::Evaluator::Dimension

Inherits:
Data
  • Object
show all
Defined in:
lib/ask/agent/evaluator.rb

Overview

A single dimension in the evaluation rubric.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject (readonly)

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



20
21
22
# File 'lib/ask/agent/evaluator.rb', line 20

def description
  @description
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



20
21
22
# File 'lib/ask/agent/evaluator.rb', line 20

def name
  @name
end

#weightObject (readonly)

Returns the value of attribute weight

Returns:

  • (Object)

    the current value of weight



20
21
22
# File 'lib/ask/agent/evaluator.rb', line 20

def weight
  @weight
end