Class: ROM::Memory::Commands::Update

Inherits:
Commands::Update show all
Defined in:
core/lib/rom/memory/commands.rb

Overview

In-memory update command

Instance Method Summary collapse

Instance Method Details

#execute(params) ⇒ Object

See Also:

  • Commands::Update#execute


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