Class: Tataru::Instructions::CheckDeleteInstruction
- Inherits:
-
CheckInstruction
- Object
- Tataru::Instruction
- ResourceInstruction
- CheckInstruction
- Tataru::Instructions::CheckDeleteInstruction
- Defined in:
- lib/tataru/instructions/check_delete_instruction.rb
Overview
check that delete is completed
Instance Attribute Summary
Attributes inherited from Tataru::Instruction
Instance Method Summary collapse
- #after_complete ⇒ Object
-
#initialize ⇒ CheckDeleteInstruction
constructor
A new instance of CheckDeleteInstruction.
Methods inherited from CheckInstruction
Methods inherited from ResourceInstruction
Methods inherited from Tataru::Instruction
Constructor Details
#initialize ⇒ CheckDeleteInstruction
Returns a new instance of CheckDeleteInstruction.
7 8 9 |
# File 'lib/tataru/instructions/check_delete_instruction.rb', line 7 def initialize super :delete end |
Instance Method Details
#after_complete ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/tataru/instructions/check_delete_instruction.rb', line 11 def after_complete memory.hash[:deleted] << resource_name return unless desc.needs_remote_id? memory.hash[:remote_ids].delete(resource_name) end |