Class Mongoid::Persistence::Atomic::Inc
In: lib/mongoid/persistence/atomic/inc.rb
Parent: Object

This class provides atomic $inc behaviour.

Methods

persist  

Included Modules

Operation

Public Instance methods

Sends the atomic $inc operation to the database.

@example Persist the new values.

  inc.persist

@return [ Object ] The new integer value.

@since 2.0.0

[Validate]