Class: Tataru::Instructions::MarkDeletableInstruction

Inherits:
ResourceInstruction show all
Defined in:
lib/tataru/instructions/mark_deletable_instruction.rb

Overview

puts remote id up for deletion

Instance Attribute Summary

Attributes inherited from Tataru::Instruction

#memory

Instance Method Summary collapse

Methods inherited from ResourceInstruction

#desc

Methods inherited from Tataru::Instruction

#execute, expects

Instance Method Details

#runObject



7
8
9
10
# File 'lib/tataru/instructions/mark_deletable_instruction.rb', line 7

def run
  remote_id = memory.hash[:remote_ids].delete(resource_name)
  memory.hash[:remote_ids]["_deletable_#{resource_name}"] = remote_id
end