Class: Phronomy::Eval::EvalCase
- Inherits:
-
Data
- Object
- Data
- Phronomy::Eval::EvalCase
- Defined in:
- lib/phronomy/eval/eval_case.rb
Overview
Represents a single evaluation sample with an input, an expected output, and optional freeform metadata.
Instance Attribute Summary collapse
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Instance Method Summary collapse
-
#initialize(input:, expected:, metadata: {}) ⇒ EvalCase
constructor
A new instance of EvalCase.
Constructor Details
#initialize(input:, expected:, metadata: {}) ⇒ EvalCase
Returns a new instance of EvalCase.
12 13 14 |
# File 'lib/phronomy/eval/eval_case.rb', line 12 def initialize(input:, expected:, metadata: {}) super end |
Instance Attribute Details
#expected ⇒ Object (readonly)
Returns the value of attribute expected
11 12 13 |
# File 'lib/phronomy/eval/eval_case.rb', line 11 def expected @expected end |
#input ⇒ Object (readonly)
Returns the value of attribute input
11 12 13 |
# File 'lib/phronomy/eval/eval_case.rb', line 11 def input @input end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
11 12 13 |
# File 'lib/phronomy/eval/eval_case.rb', line 11 def @metadata end |