lib/dynamoid/adapter/local.rb
# Persists an item in the hash.
#
# @param [String] table_name the name of the table
# @param [Object] object a hash or Dynamoid object to persist
#
# @since 0.2.0
Persists an item in the hash.
Persists an item in the hash .
def put_item(table_name, object)
        table = data[table_name]
        table[:data][object[table[:hash_key]]]
        table[:data]["#{object[table[:hash_key]]}.#{object[table[:range_key]]}"] = object.delete_if{|k, v| v.nil? || (v.respond_to?(:empty?) && v.empty?)}
      rescue
        raise data.inspect
      end
def put_item ( table_name , object ) table = data [ table_name ] table [ :data ] [ object [ table [ :hash_key ] ] ] table [ :data ] [ "#{object[table[:hash_key]]}.#{object[table[:range_key]]}" ] = object . delete_if { | k , v | v . nil? || ( v . respond_to? ( :empty? ) && v . empty? ) } rescue raise data . inspect end
Persists an item in the hash.
Persists an item in the hash .
table_name
<not_specific>
object
<not_specific>
<not_specific>
object a hash or Dynamoid object to persist
object a hash or Dynamoid object to persist
since
None