lib/safe_operation/failure.rb in safe_operation-1.0.0 vs lib/safe_operation/failure.rb in safe_operation-2.0.0
- old
+ new
@@ -1,18 +1,15 @@
-module SafeOperation
+class SafeOperation
class Failure
def initialize(failure)
@failure = failure
end
- def result
- failure
+ def value
+ @failure
end
def success?
false
end
-
- private
- attr_reader :failure
end
end