class HecksAdapters::DynamoDB::Commands::Create
Attributes
args[R]
client[R]
head[R]
id[R]
Public Class Methods
new(args, head, client)
click to toggle source
# File lib/commands/create.rb, line 8 def initialize(args, head, client) @args = args @head = head @client = client end
Public Instance Methods
call()
click to toggle source
# File lib/commands/create.rb, line 14 def call put_item self end
Private Instance Methods
put_item()
click to toggle source
# File lib/commands/create.rb, line 23 def put_item @id = args[:id] result = client.put_item({ item: args, return_consumed_capacity: 'TOTAL', table_name: head.name }) end