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