Class: ROM::Memory::Commands::Update
- Inherits:
-
Commands::Update
- Object
- Command
- Commands::Update
- ROM::Memory::Commands::Update
- Defined in:
- core/lib/rom/memory/commands.rb
Overview
In-memory update command
Instance Method Summary collapse
Instance Method Details
#execute(params) ⇒ Object
36 37 38 39 |
# File 'core/lib/rom/memory/commands.rb', line 36 def execute(params) attributes = input[params] relation.map { |tuple| tuple.update(attributes.to_h) } end |