Exception: Endo::Error::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- Endo::Error::ValidationError
- Defined in:
- lib/endo/error/validation_error.rb
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
Instance Method Summary collapse
-
#initialize(expected, actual) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(expected, actual) ⇒ ValidationError
Returns a new instance of ValidationError.
7 8 9 10 11 |
# File 'lib/endo/error/validation_error.rb', line 7 def initialize(expected, actual) super("expected: #{expected}\n actual: #{actual}") @expected = expected @actual = actual end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
5 6 7 |
# File 'lib/endo/error/validation_error.rb', line 5 def actual @actual end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
5 6 7 |
# File 'lib/endo/error/validation_error.rb', line 5 def expected @expected end |