Class: Ecom2::LineItem
- Inherits:
-
Object
- Object
- Ecom2::LineItem
- Includes:
- Mongoid::Document, Mongoid::Timestamps
- Defined in:
- app/models/ecom2/line_item.rb
Class Method Summary collapse
Class Method Details
.make_items(purchase_id, product_id, price) ⇒ Object
10 11 12 13 |
# File 'app/models/ecom2/line_item.rb', line 10 def self.make_items(purchase_id, product_id, price) LineItem.create(purchase_id: purchase_id, product_id: product_id, price: price) end |