Class: Charger::Component::OnOff
- Inherits:
-
Charger::Component
- Object
- Charger::Component
- Charger::Component::OnOff
- Defined in:
- lib/charger/component/on_off.rb
Instance Method Summary collapse
Methods inherited from Charger::Component
find, find_by_product_family_id
Instance Method Details
#total_for(val) ⇒ Object
4 5 6 |
# File 'lib/charger/component/on_off.rb', line 4 def total_for val val > 0 ? unit_price : 0.to_f end |