payroll_hero-api 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/payroll_hero/api/v4/employees.rb +18 -12
- data/lib/payroll_hero/api/version.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: d2b1948b1411e95606e94c00944dc3388944767e
|
4
|
+
data.tar.gz: 0cbded8b068c8cd35804af6282538750146d83d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14313e09c9f7953cc85134329acc5854487be8a0794cbac87bfeb42cdee1b6528be012b150792b02f8767287ad54f831dbfc64fb2afb8e1c08246b34e65014b0
|
7
|
+
data.tar.gz: aef2f9459ea4abacf872ee03e7a779c4ab6aedfa894a9706311302fe5565fe8d48cbe8384778f5381cb625385327bcdfb41d1722cbddfc2362970c3c4bb561c1
|
@@ -10,13 +10,16 @@ module PayrollHero
|
|
10
10
|
# @param [Array|Symbol] except - Attribute names to be excluded on the response
|
11
11
|
# @param [Array|Symbol] include - Association names to be included in the response
|
12
12
|
def list(only: [], except: [], include: [], page: nil, per_page: nil, **params)
|
13
|
-
combined_params = params.merge
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
combined_params = params.merge(
|
14
|
+
remove_empty_values_from!(
|
15
|
+
only: Array(only),
|
16
|
+
except: Array(except),
|
17
|
+
include: Array(include),
|
18
|
+
page: page,
|
19
|
+
per_page: per_page
|
20
|
+
)
|
21
|
+
)
|
18
22
|
|
19
|
-
remove_empty_values_from! combined_params
|
20
23
|
client.get "/api/v4/employees", combined_params
|
21
24
|
end
|
22
25
|
|
@@ -56,13 +59,16 @@ module PayrollHero
|
|
56
59
|
private
|
57
60
|
|
58
61
|
def fetch(identifier, only:, except:, include:, page: nil, per_page: nil, **params)
|
59
|
-
combined_params = params.merge
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
62
|
+
combined_params = params.merge(
|
63
|
+
remove_empty_values_from!(
|
64
|
+
only: Array(only),
|
65
|
+
except: Array(except),
|
66
|
+
include: Array(include),
|
67
|
+
page: page,
|
68
|
+
per_page: per_page
|
69
|
+
)
|
70
|
+
)
|
64
71
|
|
65
|
-
remove_empty_values_from! combined_params
|
66
72
|
client.get "/api/v4/employees/#{identifier}", combined_params
|
67
73
|
end
|
68
74
|
end
|