Class: Tataru::Instructions::CreateInstruction
- Inherits:
-
ResourceInstruction
- Object
- Tataru::Instruction
- ResourceInstruction
- Tataru::Instructions::CreateInstruction
- Defined in:
- lib/tataru/instructions/create_instruction.rb
Overview
instruction to create
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
9 10 11 12 13 14 15 16 17 |
# File 'lib/tataru/instructions/create_instruction.rb', line 9 def run resource_class = desc.resource_class resource = resource_class.new(nil) resource.create(properties) return unless desc.needs_remote_id? memory.hash[:remote_ids][resource_name] = resource.remote_id end |