Class: Dynomite::Item::Write::Base
- Inherits:
-
Object
- Object
- Dynomite::Item::Write::Base
- Includes:
- Client
- Defined in:
- lib/dynomite/item/write/base.rb
Direct Known Subclasses
Class Method Summary collapse
-
.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.
Instance Method Summary collapse
-
#initialize(model, options = {}) ⇒ Base
constructor
A new instance of Base.
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, ={}) @model, @options = model, 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, ={}) new(model, ).call end |