Class: CloneKit::Operation::BatchCompleteHandler
- Inherits:
-
Object
- Object
- CloneKit::Operation::BatchCompleteHandler
- Defined in:
- lib/clone_kit/operation.rb
Instance Method Summary collapse
Instance Method Details
#complete(success, options) ⇒ Object
68 69 70 71 72 73 74 75 76 |
# File 'lib/clone_kit/operation.rb', line 68 def complete(success, ) op = Operation.new(.fetch("operation")) if success op.process else op.error(.fetch("failure_message", "Unknown error")) end end |