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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e2f23eb79a6c8ff9f97d068faec100a7dfbc1ad19660dbf35d24506579a3c73
4
- data.tar.gz: d650aac15ce41ffb4615c461eb1d4472a263c77582e114237fd442a44d90481d
3
+ metadata.gz: ae33057b40776c2a9e2fdb50c605eba7637b19513773ec845739559b20e40a48
4
+ data.tar.gz: 2811a2aee737af28f3d99b114876c3d3c6d6340cdf24cf3e0b55394577a98f48
5
5
  SHA512:
6
- metadata.gz: d0f9fe09c4605ab62d86b0bd1d624405fd9295fc536321ff371562dbbfcefe94263246f4094264a79b1f8f8013ce0ecdf7d46b112d2b9bd371c819fdc454f361
7
- data.tar.gz: c972a2596bbfaf7c57e958f394a35a56f744c2e85dc32688ebede7aae7d30f371a8346e7cb466682b9646edbcb8bff8e8eec37ab398bd058b17a661847de9ca4
6
+ metadata.gz: 6ad2fa72340993973e17a3a7f54b1645f69155e77f3eaebf12b02be2f55a0b746d36a273b727e843c27fdef1f4c793d50f2fa77fe96ae1062a57cdd3a1e9ac76
7
+ data.tar.gz: 70f66303751bf9d6492e849625e7e0b58f03f6721b92042d7cdbd8127e29b71753e33f4ac2a0e22fc412691d343ac1caa198e8d0fb5179060a9963d26f20abdd
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bob
4
- VERSION = '0.5.4'
4
+ VERSION = '0.5.5'
5
5
  end
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
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-16 00:00:00.000000000 Z
11
+ date: 2022-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json