lib/lotus/model/adapters/mongodb/collection.rb
def update(entity)
            serialized_entity = _serialize(entity)
            update_one('$set' => serialized_entity)
            _deserialize(serialized_entity)
          end
# Updates the record corresponding to the given entity.
#
# @param entity [Object] the entity to persist
#
# @see Lotus::Model::Adapters::Sql::Command#update
#
# @api private
# @since 0.1.0
Updates the record corresponding to the given entity.
Updates the record corresponding to the given entity .
def update(entity)
            serialized_entity = _serialize(entity)
            update_one('$set' => serialized_entity)
            _deserialize(serialized_entity)
          end
def update ( entity ) serialized_entity = _serialize ( entity ) update_one ( '$set' => serialized_entity ) _deserialize ( serialized_entity ) end
Updates the record corresponding to the given entity.
Updates the record corresponding to the given entity .
entity
the entity to persist
the entity to persist
see
None
api
None
since
None