Class: Charger::LineItem::QuantityBased
- Inherits:
-
Charger::LineItem
- Object
- Charger::LineItem
- Charger::LineItem::QuantityBased
- Defined in:
- lib/charger/line_item/quantity_based.rb
Instance Method Summary collapse
Methods inherited from Charger::LineItem
#component, #component=, find_by_subscription_id, #subscription, #subscription=
Instance Method Details
#allocated? ⇒ Boolean
12 13 14 |
# File 'lib/charger/line_item/quantity_based.rb', line 12 def allocated? allocated_quantity > 0 end |
#total ⇒ Float
7 8 9 |
# File 'lib/charger/line_item/quantity_based.rb', line 7 def total component.total_for(allocated_quantity) end |