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

Inherits:
Commands::Update show all
Defined in:
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


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