Class: Babik::QuerySet::Update::Assignment::Decrement

Inherits:
Operation
  • Object
show all
Defined in:
lib/babik/queryset/lib/update/assignment.rb

Overview

Decrement operation

Instance Method Summary collapse

Methods inherited from Operation

#sql_value

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