tax-util 0.0.4 → 0.0.5
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: e453f558f8f3e957a345f9303b63f794150e0a7b
|
4
|
+
data.tar.gz: 0a40e407959299fa53551eabebbf16fae517865d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 097ad31f451346406ed683a7e6925f0d795b1240b04b2d00e0d8460fc19a58612386eb76ae1eebd7ea58d7a3b1fb8618335d6b7ae3e2b15f32d36a9247360378
|
7
|
+
data.tar.gz: 0030a3c60016aeed4e4a465cb159ad77fe63b6c4690c1e550b43fd177c53ce26ecce27cd449dc85c2b7b35a4d5c734b464a75d8b98df190525bbbc0a7a41e689
|
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={method: :
|
4
|
+
def self.calculate(gross_amount, calc_method={method: :default})
|
5
5
|
self.const_get(classify(calc_method[:method])).new(gross_amount).calculate
|
6
6
|
end
|
7
7
|
|