Exception: Backspin::VerificationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/backspin.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, result: nil)
  super(message)
  @result = result
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



23
24
25
# File 'lib/backspin.rb', line 23

def result
  @result
end

Instance Method Details

#actual_commandsObject



38
39
40
# File 'lib/backspin.rb', line 38

def actual_commands
  result.command_diffs.map(&:actual_command)
end

#diffObject



30
31
32
# File 'lib/backspin.rb', line 30

def diff
  result.diff
end

#recorded_commandsObject



34
35
36
# File 'lib/backspin.rb', line 34

def recorded_commands
  result.command_diffs.map(&:recorded_command)
end