Class: Dynomite::Item::Write::Base

Inherits:
Object
  • Object
show all
Includes:
Client
Defined in:
lib/dynomite/item/write/base.rb

Direct Known Subclasses

DeleteItem, PutItem, UpdateItem

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model, options = {}) ⇒ Base

Returns a new instance of Base.



11
12
13
# File 'lib/dynomite/item/write/base.rb', line 11

def initialize(model, options={})
  @model, @options = model, options
end

Class Method Details

.call(model, options = {}) ⇒ Object

The attributes are in model.attrs and are held by reference The options are the client.delete_item or client.put_item options.



7
8
9
# File 'lib/dynomite/item/write/base.rb', line 7

def self.call(model, options={})
  new(model, options).call
end