class TaxManipulator::Manipulator::IncludingTax
Public Instance Methods
price_excl_tax()
click to toggle source
# File lib/tax_manipulator/manipulators/including_tax.rb, line 12 def price_excl_tax (price - vat).round(2) end
price_incl_tax()
click to toggle source
# File lib/tax_manipulator/manipulators/including_tax.rb, line 8 def price_incl_tax price.round(2) end
vat()
click to toggle source
# File lib/tax_manipulator/manipulators/including_tax.rb, line 4 def vat (price - (price / (rate + 1))).round(2) end