Sha256: 1f0e2d3e958d01dc8e3d47b1167b2f673b5a1e4e83895a84115a99dcfaa47bf4

Contents?: true

Size: 384 Bytes

Versions: 4

Compression:

Stored size: 384 Bytes

Contents

module Dynomite::Item::Write
  class Base
    include Dynomite::Client

    # The attributes are in model.attrs and are held by reference
    # The options are the client.delete_item or client.put_item options.
    def self.call(model, options={})
      new(model, options).call
    end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dynomite-2.0.3 lib/dynomite/item/write/base.rb
dynomite-2.0.2 lib/dynomite/item/write/base.rb
dynomite-2.0.1 lib/dynomite/item/write/base.rb
dynomite-2.0.0 lib/dynomite/item/write/base.rb