Class: HecksAdapters::DynamoDB::Commands::Create

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

Overview

Create a resource on DynamoDB

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args, head, client) ⇒ Create

Returns a new instance of Create.



8
9
10
11
12
# File 'lib/commands/create.rb', line 8

def initialize(args, head, client)
  @args = args
  @head = head
  @client = client
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/commands/create.rb', line 6

def id
  @id
end

Instance Method Details

#callObject



14
15
16
17
# File 'lib/commands/create.rb', line 14

def call
  put_item
  self
end