Class: Babik::QuerySet::Update::Assignment::Increment

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

Overview

Increment operation

Instance Method Summary collapse

Methods inherited from Operation

#sql_value

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