tax-util 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tax_util.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d30394a948cb607d43350d8e3aa4300f5791524e
|
4
|
+
data.tar.gz: c3376b32574fa2e01d3ab3fadab6b1cde1632394
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e169278a4dc43eb891b941d1a12406f28caeef1388251d046b27b4f43de20e4dc6b6a4844a4aa6568a486082cf002cc1ec805d1e73ee0a9b8218fc3d5d38900
|
7
|
+
data.tar.gz: a6f9a72c9aed026e646d2800e3bada671951b3b4dc56e062bbbd688ac254e6f8c0602d2754e1199edf59c289f3e54dec240535475b6b7cb9e4c3ce2f9e587d55
|
data/lib/tax_util.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Dir.glob('./lib/calc_method/*').each{|i| require i }
|
2
2
|
|
3
3
|
class TaxUtil
|
4
|
-
def self.calculate(gross_amount, calc_method
|
4
|
+
def self.calculate(gross_amount, calc_method={method: :gross_to_nett})
|
5
5
|
self.const_get(classify(calc_method[:method])).new(gross_amount).calculate
|
6
6
|
end
|
7
7
|
|