bobhr 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bob/models/employee.rb +28 -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: ae33057b40776c2a9e2fdb50c605eba7637b19513773ec845739559b20e40a48
|
4
|
+
data.tar.gz: 2811a2aee737af28f3d99b114876c3d3c6d6340cdf24cf3e0b55394577a98f48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ad2fa72340993973e17a3a7f54b1645f69155e77f3eaebf12b02be2f55a0b746d36a273b727e843c27fdef1f4c793d50f2fa77fe96ae1062a57cdd3a1e9ac76
|
7
|
+
data.tar.gz: 70f66303751bf9d6492e849625e7e0b58f03f6721b92042d7cdbd8127e29b71753e33f4ac2a0e22fc412691d343ac1caa198e8d0fb5179060a9963d26f20abdd
|
data/lib/bob/models/employee.rb
CHANGED
@@ -38,8 +38,36 @@ module Models
|
|
38
38
|
human_readable.work.custom_columns.column_1629151373898
|
39
39
|
end
|
40
40
|
|
41
|
+
def has_manager?
|
42
|
+
manager.present?
|
43
|
+
end
|
44
|
+
|
41
45
|
def manager
|
42
46
|
work.reports_to
|
43
47
|
end
|
48
|
+
|
49
|
+
def has_second_level_manager?
|
50
|
+
work.second_level_manager.present?
|
51
|
+
end
|
52
|
+
|
53
|
+
def second_level_manager
|
54
|
+
@second_level_manager ||= Bob::Employees.find(work.second_level_manager)
|
55
|
+
end
|
56
|
+
|
57
|
+
def has_third_level_manager?
|
58
|
+
third_level_manager.present?
|
59
|
+
end
|
60
|
+
|
61
|
+
def third_level_manager
|
62
|
+
second_level_manager.manager
|
63
|
+
end
|
64
|
+
|
65
|
+
def has_fourth_level_manager?
|
66
|
+
second_level_manager.work.second_level_manager.present?
|
67
|
+
end
|
68
|
+
|
69
|
+
def fourth_level_manager
|
70
|
+
second_level_manager.second_level_manager
|
71
|
+
end
|
44
72
|
end
|
45
73
|
end
|
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.5
|
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: 2022-03-
|
11
|
+
date: 2022-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|