Class: Calculator::CashOnDelivery
- Inherits:
-
Calculator
- Object
- Calculator
- Calculator::CashOnDelivery
- Defined in:
- app/models/calculator/cash_on_delivery.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.description ⇒ Object
2 3 4 |
# File 'app/models/calculator/cash_on_delivery.rb', line 2 def self.description I18n.t("cash_on_delivery") end |
.register ⇒ Object
6 7 8 9 |
# File 'app/models/calculator/cash_on_delivery.rb', line 6 def self.register super ShippingMethod.register_calculator(self) end |
Instance Method Details
#compute(object) ⇒ Object
11 12 13 |
# File 'app/models/calculator/cash_on_delivery.rb', line 11 def compute(object) 0 end |