Class: Vindi::Product

Inherits:
Model
  • Object
show all
Defined in:
lib/vindi/models/product.rb

Overview

Products

Examples:

Active productts


products = Vindi::Product.active

Create a product


palantir = Vindi::Product.new.tap do |p|
  p.code = "palantir"
  p.name = "Palantir"
  p.description = "The Twitch of Istari folk"
  p.pricing_schema = { price: 42.42 }
  p.save
end

Method Summary

Methods inherited from Model

#archive!, first, last, #valid?