lib/dynamoid/adapter.rb
# Write an object to the adapter. Partition it to a randomly selected key first if necessary.
#
# @param [String] table the name of the table to write the object to
# @param [Object] object the object itself
#
# @return [Object] the persisted object
#
# @since 0.2.0
Write an object to the adapter. Partition it to a randomly selected key first if necessary.
Write an object to the adapter . Partition it to a randomly selected key first if necessary .
def write(table, object)
      if Dynamoid::Config.partitioning? && object[:id]
        object[:id] = "#{object[:id]}.#{Random.rand(Dynamoid::Config.partition_size)}"
        object[:updated_at] = Time.now.to_f
      end
      put_item(table, object)
    end
def write ( table , object ) if Dynamoid :: Config . partitioning? && object [ :id ] object [ :id ] = "#{object[:id]}.#{Random.rand(Dynamoid::Config.partition_size)}" object [ :updated_at ] = Time . now . to_f end put_item ( table , object ) end
Write an object to the adapter.
Write an object to the adapter .
the persisted object
the persisted object
Object
table
<not_specific>
object
<not_specific>
<not_specific>
object the object itself
object the object itself
since
None