train-tax-calculator 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 839bd13a6da77f5d694a0611933fe07e14f4a810
4
- data.tar.gz: 286eaeb2f6f966b33a2a3a7383ff3fc65cadb07c
3
+ metadata.gz: 61280b3a2f140b9094d0922b9057341dbbd3d6c8
4
+ data.tar.gz: 6e37031bd76580def680e0b8dce8345c432cb240
5
5
  SHA512:
6
- metadata.gz: d7d9668a4c15c34e5ba54c0451c0a922a29815e8a1a5c7567099a3eb93984ad6350914aa14e483f67d1ef6edce227c070d152624478caf92c1b741b33f24e890
7
- data.tar.gz: ea1ed4e3e76b75af761a0557b00584accbbd8a65cf7b8dabd4ac2c3bbe525f6b8b49542d656e0743f06f6d5f9681b50c2ded85c74e10b3e963bd0e2da5bade98
6
+ metadata.gz: c36bbe82c1802ed3c741bb2b977d25a27326f4c7b3144145aa12d0b64ad99899498747cc6c8d1115543572984edf5101957cfd2b9871ea3599ddd37d0664e160
7
+ data.tar.gz: e76dd09f0fa1999e295595c571ea3bc2d69789d242b43117232f1edf65c43a430d80443f4bae1be14d2fec81d745981a2b3c102bf27a9b719ffe3ba4d5426c23
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- train-tax-calculator (2.0.0)
4
+ train-tax-calculator (2.0.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -28,9 +28,6 @@ If using IRB, require the library first.
28
28
 
29
29
  ```ruby
30
30
  require 'train/tax/calculator'
31
- ```
32
-
33
- ```Get Tax Details
34
31
  Train::Tax::Calculator.(15_000) # returns a hash with basic tax information
35
32
  ```
36
33
 
@@ -7,19 +7,17 @@ module Train
7
7
  module Tax
8
8
  module Calculator
9
9
 
10
- class << self
11
- def call(basic_salary)
12
- hash = Hash.new
10
+ def self.call(basic_salary)
11
+ hash = Hash.new
13
12
 
14
- hash[:sss] = for_sss_es(basic_salary)
15
- hash[:philhealth] = for_philhealth(basic_salary)
16
- hash[:pagibig] = for_pagibig(basic_salary)
17
- hash[:total_deductions] = hash[:sss] + hash[:philhealth] + hash[:pagibig]
18
- hash[:withholding_tax] = withholding_tax(basic_salary)
19
- hash[:net_income] = net_income(basic_salary)
13
+ hash[:sss] = for_sss_es(basic_salary)
14
+ hash[:philhealth] = for_philhealth(basic_salary)
15
+ hash[:pagibig] = for_pagibig(basic_salary)
16
+ hash[:total_deductions] = hash[:sss] + hash[:philhealth] + hash[:pagibig]
17
+ hash[:withholding_tax] = withholding_tax(basic_salary)
18
+ hash[:net_income] = net_income(basic_salary)
20
19
 
21
- hash
22
- end
20
+ hash
23
21
  end
24
22
 
25
23
  private
@@ -1,7 +1,7 @@
1
1
  module Train
2
2
  module Tax
3
3
  module Calculator
4
- VERSION = "2.0.0"
4
+ VERSION = "2.0.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: train-tax-calculator
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Chavez