Sha256: 511cd27994d70a7766d98b8c939fe46842962fc658a86d68fe77d38619e19daf
Contents?: true
Size: 455 Bytes
Versions: 2
Compression:
Stored size: 455 Bytes
Contents
class Wco::Product include Mongoid::Document include Mongoid::Timestamps field :name field :product_id # stripe field :price_id # stripe field :price_cents, type: Integer INTERVALS = [ nil, 'day', 'week', 'month', 'year' ] field :interval, type: String has_many :subscriptions, class_name: '::Wco::Subscription', inverse_of: :subscription def self.list [ [nil,nil] ] + self.all.map { |i| [i.name, i.price_id] } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ish_models-0.0.33.260 | lib/wco/product.rb |
ish_models-0.0.33.259 | lib/wco/product.rb |