Exception: Endo::Error::ValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/endo/error/validation_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actualObject (readonly)

Returns the value of attribute actual.



5
6
7
# File 'lib/endo/error/validation_error.rb', line 5

def actual
  @actual
end

#expectedObject (readonly)

Returns the value of attribute expected.



5
6
7
# File 'lib/endo/error/validation_error.rb', line 5

def expected
  @expected
end