Class: Calculator::CashOnDelivery

Inherits:
Calculator
  • Object
show all
Defined in:
app/models/calculator/cash_on_delivery.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.descriptionObject



2
3
4
# File 'app/models/calculator/cash_on_delivery.rb', line 2

def self.description
  I18n.t("cash_on_delivery")
end

.registerObject



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