class Rom::Dynamo::Commands::Create
DynamoDB create command
Public Instance Methods
dataset()
click to toggle source
# File lib/rom/dynamo/commands.rb, line 15 def dataset relation.dataset end
execute(tuples)
click to toggle source
# File lib/rom/dynamo/commands.rb, line 8 def execute(tuples) Array([tuples]).flatten.map do |tuple| attributes = input[tuple] dataset.insert(attributes.to_h) end end