Class: HecksAdapters::DynamoDB::Commands::Create
- Inherits:
-
Object
- Object
- HecksAdapters::DynamoDB::Commands::Create
- Defined in:
- lib/commands/create.rb
Overview
Create a resource on DynamoDB
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(args, head, client) ⇒ Create
constructor
A new instance of Create.
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/commands/create.rb', line 6 def id @id end |
Instance Method Details
#call ⇒ Object
14 15 16 17 |
# File 'lib/commands/create.rb', line 14 def call put_item self end |