Class: Wco::Price
- Inherits:
-
Object
- Object
- Wco::Price
- Includes:
- Mongoid::Document, Mongoid::Timestamps
- Defined in:
- lib/wco/price.rb
Overview
Not used. vp 2023-09-07 Just replicating the Stripe structure.
Constant Summary collapse
- INTERVALS =
[ nil, 'day', 'week', 'month', 'year' ]
Instance Method Summary collapse
Instance Method Details
#name ⇒ Object
21 22 23 |
# File 'lib/wco/price.rb', line 21 def name "$#{ amount_cents.to_f/100 } / #{interval}" end |