Class: Moult::Gate::Evaluation::RuleOutcome
- Inherits:
-
Struct
- Object
- Struct
- Moult::Gate::Evaluation::RuleOutcome
- Defined in:
- lib/moult/gate/evaluation.rb
Instance Attribute Summary collapse
-
#evaluated ⇒ Object
Returns the value of attribute evaluated.
-
#findings ⇒ Object
Returns the value of attribute findings.
-
#observed ⇒ Object
Returns the value of attribute observed.
-
#passed ⇒ Object
Returns the value of attribute passed.
-
#reasons ⇒ Object
Returns the value of attribute reasons.
-
#rule ⇒ Object
Returns the value of attribute rule.
-
#threshold ⇒ Object
Returns the value of attribute threshold.
Instance Method Summary collapse
Instance Attribute Details
#evaluated ⇒ Object
Returns the value of attribute evaluated
49 50 51 |
# File 'lib/moult/gate/evaluation.rb', line 49 def evaluated @evaluated end |
#findings ⇒ Object
Returns the value of attribute findings
49 50 51 |
# File 'lib/moult/gate/evaluation.rb', line 49 def findings @findings end |
#observed ⇒ Object
Returns the value of attribute observed
49 50 51 |
# File 'lib/moult/gate/evaluation.rb', line 49 def observed @observed end |
#passed ⇒ Object
Returns the value of attribute passed
49 50 51 |
# File 'lib/moult/gate/evaluation.rb', line 49 def passed @passed end |
#reasons ⇒ Object
Returns the value of attribute reasons
49 50 51 |
# File 'lib/moult/gate/evaluation.rb', line 49 def reasons @reasons end |
#rule ⇒ Object
Returns the value of attribute rule
49 50 51 |
# File 'lib/moult/gate/evaluation.rb', line 49 def rule @rule end |
#threshold ⇒ Object
Returns the value of attribute threshold
49 50 51 |
# File 'lib/moult/gate/evaluation.rb', line 49 def threshold @threshold end |
Instance Method Details
#to_h ⇒ Object
50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/moult/gate/evaluation.rb', line 50 def to_h { rule: rule, evaluated: evaluated, observed: observed, threshold: threshold, passed: passed, reasons: reasons.map(&:to_h), findings: findings.map(&:to_h) } end |