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