Class: Gemstonemerchant::LineItem

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps
Defined in:
app/models/gemstonemerchant/line_item.rb

Class Method Summary collapse

Class Method Details

.make_items(purchase_id, product_id, price) ⇒ Object



13
14
15
# File 'app/models/gemstonemerchant/line_item.rb', line 13

def self.make_items(purchase_id, product_id, price)
  LineItem.create(purchase_id: purchase_id, product_id: product_id, price: price)
end