Class: Tube::AttributeUpdater::Volume

Inherits:
Base
  • Object
show all
Defined in:
app/models/tube/attribute_updater.rb

Overview

Updated the tube volume in ul

Instance Attribute Summary

Attributes inherited from Base

#qc_result, #tube

Instance Method Summary collapse

Methods inherited from Base

#initialize, #original_value, #target_value

Constructor Details

This class inherits a constructor from Tube::AttributeUpdater::Base

Instance Method Details

#updateObject



62
63
64
65
# File 'app/models/tube/attribute_updater.rb', line 62

def update
  tube.update!(volume: target_value)
  tube.save
end