Module: FbaFeeCalculator
- Defined in:
- lib/fba_fee_calculator.rb,
lib/fba_fee_calculator/version.rb,
lib/fba_fee_calculator/fba_fees.rb,
lib/fba_fee_calculator/fee_constants.rb,
lib/fba_fee_calculator/fba_fee_calculation.rb
Defined Under Namespace
Modules: FeeConstants Classes: FbaFeeCalculation, FbaFees
Constant Summary collapse
- VERSION =
"1.0.4"
Class Method Summary collapse
Class Method Details
.calculate(args) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/fba_fee_calculator.rb', line 7 def self.calculate(args) price = args[:price] category = args[:category] weight = args[:weight] dimensions = args[:dimensions] calculation = FbaFeeCalculation.new(price, category, weight, dimensions) calculation.calculate! calculation end |