lib/dynamoid/adapter_plugin/aws_sdk_v2.rb
#
# Returns an AttributeUpdates hash suitable for passing to the V2 Client API
#
Returns an AttributeUpdates hash suitable for passing to the V2 Client API
Returns an AttributeUpdates hash suitable for passing to the V2 Client API
def to_h
          ret = {}
          @additions.each do |k,v|
            ret[k.to_s] = {
              action: ADD,
              value: v
            }
          end
          @deletions.each do |k,v|
            ret[k.to_s] = {
              action: DELETE,
              value: v
            }
          end
          @updates.each do |k,v|
            ret[k.to_s] = {
              action: PUT,
              value: v
            }
          end
          ret
        end
def to_h ret = { } @additions . each do | k , v | ret [ k . to_s ] = { action : ADD , value : v } end @deletions . each do | k , v | ret [ k . to_s ] = { action : DELETE , value : v } end @updates . each do | k , v | ret [ k . to_s ] = { action : PUT , value : v } end ret end
Returns an AttributeUpdates hash suitable for passing to the V2 Client API
Returns an AttributeUpdates hash suitable for passing to the V2 Client API