Class: Statefully::Diff::Failed

Inherits:
Object
  • Object
show all
Defined in:
lib/statefully/diff.rb

Overview

class Unchanged

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ Failed

Returns a new instance of Failed.



81
82
83
# File 'lib/statefully/diff.rb', line 81

def initialize(error)
  @error = error
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



79
80
81
# File 'lib/statefully/diff.rb', line 79

def error
  @error
end

Instance Method Details

#inspectObject



85
86
87
# File 'lib/statefully/diff.rb', line 85

def inspect
  "#<#{self.class.name} error=#{error.inspect}>"
end