Class: ShopPacking
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ShopPacking
- Defined in:
- app/models/shop_packing.rb
Instance Method Summary collapse
Instance Method Details
#value ⇒ Object
12 13 14 |
# File 'app/models/shop_packing.rb', line 12 def value self.product.price.to_f * self.quantity end |