Class: HecksAdapters::DynamoDB::Commands::Update

Inherits:
Object
  • Object
show all
Defined in:
lib/commands/update.rb

Overview

Update a resource on DynamoDB

Instance Method Summary collapse

Constructor Details

#initialize(id, attributes, head, client) ⇒ Update

Returns a new instance of Update.



6
7
8
9
10
11
# File 'lib/commands/update.rb', line 6

def initialize(id, attributes, head, client)
  @head = head
  @attributes = attributes
  @client = client
  @id = id
end

Instance Method Details

#callObject



13
14
15
16
# File 'lib/commands/update.rb', line 13

def call
  update_item
  self
end