Class: Comable::ShipmentItem
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Comable::ShipmentItem
- Defined in:
- app/models/comable/shipment_item.rb
Instance Attribute Summary collapse
-
#variant ⇒ Object
Returns the value of attribute variant.
Instance Method Summary collapse
Instance Attribute Details
#variant ⇒ Object
Returns the value of attribute variant.
9 10 11 |
# File 'app/models/comable/shipment_item.rb', line 9 def variant @variant end |
Instance Method Details
#ready! ⇒ Object
11 12 13 |
# File 'app/models/comable/shipment_item.rb', line 11 def ready! decrement_stock! end |
#restock! ⇒ Object
15 16 17 |
# File 'app/models/comable/shipment_item.rb', line 15 def restock! increment_stock! end |
#unstock! ⇒ Object
19 20 21 |
# File 'app/models/comable/shipment_item.rb', line 19 def unstock! decrement_stock! end |