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_commands ⇒ Object
- #diff ⇒ Object
-
#initialize(message, result: nil) ⇒ VerificationError
constructor
A new instance of VerificationError.
- #recorded_commands ⇒ Object
Constructor Details
#initialize(message, result: nil) ⇒ VerificationError
Returns a new instance of VerificationError.
25 26 27 28 |
# File 'lib/backspin.rb', line 25 def initialize(, result: nil) super() @result = result end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
23 24 25 |
# File 'lib/backspin.rb', line 23 def result @result end |
Instance Method Details
#actual_commands ⇒ Object
38 39 40 |
# File 'lib/backspin.rb', line 38 def actual_commands result.command_diffs.map(&:actual_command) end |
#diff ⇒ Object
30 31 32 |
# File 'lib/backspin.rb', line 30 def diff result.diff end |
#recorded_commands ⇒ Object
34 35 36 |
# File 'lib/backspin.rb', line 34 def recorded_commands result.command_diffs.map(&:recorded_command) end |