Exception: Backspin::VerificationError
- Inherits:
-
StandardError
- Object
- StandardError
- Backspin::VerificationError
- Defined in:
- lib/backspin.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
- #actual_snapshot ⇒ Object
- #diff ⇒ Object
- #expected_snapshot ⇒ Object
-
#initialize(message, result: nil) ⇒ VerificationError
constructor
A new instance of VerificationError.
Constructor Details
#initialize(message, result: nil) ⇒ VerificationError
Returns a new instance of VerificationError.
29 30 31 32 |
# File 'lib/backspin.rb', line 29 def initialize(, result: nil) super() @result = result end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
27 28 29 |
# File 'lib/backspin.rb', line 27 def result @result end |
Instance Method Details
#actual_snapshot ⇒ Object
42 43 44 |
# File 'lib/backspin.rb', line 42 def actual_snapshot result.actual end |
#diff ⇒ Object
34 35 36 |
# File 'lib/backspin.rb', line 34 def diff result.diff end |
#expected_snapshot ⇒ Object
38 39 40 |
# File 'lib/backspin.rb', line 38 def expected_snapshot result.expected end |