Class: Tube::AttributeUpdater::Volume
- Defined in:
- app/models/tube/attribute_updater.rb
Overview
Updated the tube volume in ul
Instance Attribute Summary
Attributes inherited from Base
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
#update ⇒ Object
62 63 64 65 |
# File 'app/models/tube/attribute_updater.rb', line 62 def update tube.update!(volume: target_value) tube.save end |