Class: Tataru::Instructions::DeleteInstruction
- Inherits:
-
ResourceInstruction
- Object
- Tataru::Instruction
- ResourceInstruction
- Tataru::Instructions::DeleteInstruction
- Defined in:
- lib/tataru/instructions/delete_instruction.rb
Overview
instruction to delete
Instance Attribute Summary
Attributes inherited from Tataru::Instruction
Instance Method Summary collapse
Methods inherited from ResourceInstruction
Methods inherited from Tataru::Instruction
Instance Method Details
#run ⇒ Object
7 8 9 10 11 |
# File 'lib/tataru/instructions/delete_instruction.rb', line 7 def run resource_class = desc.resource_class resource = resource_class.new(memory.hash[:remote_ids][resource_name]) resource.delete end |