Exception: DecisionAgent::ReplayMismatchError
- Defined in:
- lib/decision_agent/errors.rb
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#differences ⇒ Object
readonly
Returns the value of attribute differences.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
Instance Method Summary collapse
-
#initialize(expected:, actual:, differences:) ⇒ ReplayMismatchError
constructor
A new instance of ReplayMismatchError.
Constructor Details
#initialize(expected:, actual:, differences:) ⇒ ReplayMismatchError
Returns a new instance of ReplayMismatchError.
21 22 23 24 25 26 |
# File 'lib/decision_agent/errors.rb', line 21 def initialize(expected:, actual:, differences:) @expected = expected @actual = actual @differences = differences super("Replay mismatch detected: #{differences.join(', ')}") end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
19 20 21 |
# File 'lib/decision_agent/errors.rb', line 19 def actual @actual end |
#differences ⇒ Object (readonly)
Returns the value of attribute differences.
19 20 21 |
# File 'lib/decision_agent/errors.rb', line 19 def differences @differences end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
19 20 21 |
# File 'lib/decision_agent/errors.rb', line 19 def expected @expected end |