Class: Babik::QuerySet::Update::Assignment::Increment
- Defined in:
- lib/babik/queryset/lib/update/assignment.rb
Overview
Increment operation
Instance Method Summary collapse
-
#initialize(field, value = 1) ⇒ Increment
constructor
A new instance of Increment.
Methods inherited from Operation
Constructor Details
#initialize(field, value = 1) ⇒ Increment
Returns a new instance of Increment.
86 87 88 |
# File 'lib/babik/queryset/lib/update/assignment.rb', line 86 def initialize(field, value = 1) super(field, '+', value) end |