Class: Tataru::Instructions::CheckDeleteInstruction

Inherits:
CheckInstruction show all
Defined in:
lib/tataru/instructions/check_delete_instruction.rb

Overview

check that delete is completed

Instance Attribute Summary

Attributes inherited from Tataru::Instruction

#memory

Instance Method Summary collapse

Methods inherited from CheckInstruction

#run

Methods inherited from ResourceInstruction

#desc

Methods inherited from Tataru::Instruction

#execute, expects, #run

Constructor Details

#initializeCheckDeleteInstruction

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_completeObject



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