bobhr 0.5.31 → 0.5.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bob/api/api.rb +3 -1
- data/lib/bob/api/employee/custom_tables.rb +4 -0
- data/lib/bob/models/employee.rb +17 -0
- data/lib/bob/models.rb +1 -0
- data/lib/bob/parsers.rb +1 -0
- data/lib/bob/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a51b60f5c4ce454ba34104e17e5d7c9043b60a49ade8878ced0f3464cb6dde28
|
4
|
+
data.tar.gz: 96aff1182f54706bb5cb4fde06d94abb665f1ad361333df941a7a6e9a305c020
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91687da4b837df04d75160c36b5057c8f4809df7cea5a16ddcb15a793e775003370cde593afa787acbbe1e6d9d8fcc95756464b15c9ea1745e7059fc3bb91d84
|
7
|
+
data.tar.gz: cf7f4bfbd9e63dcb7d7029a62fb7d947df61e55fde6a961f0819dbc7836bac10fc332b5754a5f3ec1c46cc51a9af57231b08036c779e7ceccffe0bd14abc051f
|
data/lib/bob/api/api.rb
CHANGED
@@ -26,6 +26,8 @@ module Bob
|
|
26
26
|
params.to_json,
|
27
27
|
authorization_header(use_api_key: use_api_key).merge(content_headers)
|
28
28
|
)
|
29
|
+
rescue RestClient::BadRequest => e
|
30
|
+
p e
|
29
31
|
response.code
|
30
32
|
end
|
31
33
|
|
@@ -53,7 +55,7 @@ module Bob
|
|
53
55
|
|
54
56
|
def self.delete(endpoint)
|
55
57
|
url = build_url(endpoint)
|
56
|
-
response = RestClient.delete(url)
|
58
|
+
response = RestClient.delete(url, authorization_header)
|
57
59
|
response.code
|
58
60
|
end
|
59
61
|
|
@@ -11,6 +11,10 @@ module Bob
|
|
11
11
|
def self.add_row(employee_id, table_id, row_data)
|
12
12
|
post("people/custom-tables/#{employee_id}/#{table_id}", {values: row_data})
|
13
13
|
end
|
14
|
+
|
15
|
+
def self.remove_row(employee_id, table_id, row_id)
|
16
|
+
delete("people/custom-tables/#{employee_id}/#{table_id}/#{row_id}")
|
17
|
+
end
|
14
18
|
end
|
15
19
|
end
|
16
20
|
end
|
data/lib/bob/models/employee.rb
CHANGED
@@ -85,5 +85,22 @@ module Models
|
|
85
85
|
def linkedin_profile
|
86
86
|
human_readable.about.social_data&.linkedin
|
87
87
|
end
|
88
|
+
|
89
|
+
def currency
|
90
|
+
payroll.salary.payment.currency
|
91
|
+
end
|
92
|
+
|
93
|
+
def base_pay
|
94
|
+
payroll.salary.payment.value
|
95
|
+
end
|
96
|
+
|
97
|
+
def variable_pay
|
98
|
+
# TODO: check if we handle all the types with this field
|
99
|
+
payroll.variable.field_255298499.amount&.value || 0.0
|
100
|
+
end
|
101
|
+
|
102
|
+
def job_role_id
|
103
|
+
human_readable.custom.category_1645574919835.field_1657052825123
|
104
|
+
end
|
88
105
|
end
|
89
106
|
end
|
data/lib/bob/models.rb
CHANGED
data/lib/bob/parsers.rb
CHANGED
data/lib/bob/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bobhr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.33
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lien Van Den Steen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|