bobhr 0.5.16 → 0.5.17

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: 7218237ad76da3ba29c0eafa1229664858df4fc87f4fa2662b833257de0e0261
4
- data.tar.gz: 3a10d1e11581567644956bc26bb7e2bd607bbe141fc35d2cbd5ff6f1275994fa
3
+ metadata.gz: 0bfc372aea38224844d0bbb70a15fa25b688724e714836d451d39e9f543c1577
4
+ data.tar.gz: 1cabe3c271b8f048c63294a672bf15e03e20bb725d5fe8d7871785f001a42df0
5
5
  SHA512:
6
- metadata.gz: a6ea339f392621c9e064ccb1b4765884b2e462c750643aacf48db743809f07d5bb64d0c89a0c4869621267bd4ad7d88c80c1f10df0f4f764544c2fd8fc32fb5e
7
- data.tar.gz: 04abb8208e9220ecf425300c0b0db2a3fb026a9af78aa35c7af92e55b3be1cb116a419166a2e253fd958b3abfc171f31d205849e259e9ec0a0d510a7fd924c68
6
+ metadata.gz: 15f51d9c32b5f04da13b268f7ef5b08b384fa8f62f139b555ecf1f22f218f7cd8fc2e953457b2507369e122a29cc712ab508990c3b22d4ede96c557a56556da2
7
+ data.tar.gz: 73ff2e831eb14fe256bee2016e1afab2b312536795d5b97b597cceb18d6c2ffc72ca39ddc3ee27822132a84bc73475d5c8c4a856c5d89ad0616fbd1f3280a494
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bob
4
+ module Employee
5
+ class TimeOff < API
6
+ def self.balance(employee_id:, policy_type:, date: )
7
+ response = get("timeoff/employees/#{employee_id}/balance", {policyType: policy_type, date: date})
8
+ BaseParser.new(response).fields
9
+ end
10
+ end
11
+ end
12
+ end
@@ -8,6 +8,7 @@ require_relative 'employee/documents'
8
8
  require_relative 'employee/variable_payments'
9
9
  require_relative 'employee/work_history'
10
10
  require_relative 'employee/lifecycle_history'
11
+ require_relative 'employee/time_off'
11
12
 
12
13
  module Bob
13
14
  class Employees < API
@@ -6,4 +6,8 @@ class BaseParser
6
6
  def initialize(json_response)
7
7
  @json_response = json_response
8
8
  end
9
+
10
+ def fields
11
+ Models::Base.new(json_response)
12
+ end
9
13
  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.16'
4
+ VERSION = '0.5.17'
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.16
4
+ version: 0.5.17
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-08-01 00:00:00.000000000 Z
11
+ date: 2022-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -68,6 +68,7 @@ files:
68
68
  - lib/bob/api/employee/invites.rb
69
69
  - lib/bob/api/employee/lifecycle_history.rb
70
70
  - lib/bob/api/employee/salaries.rb
71
+ - lib/bob/api/employee/time_off.rb
71
72
  - lib/bob/api/employee/trainings.rb
72
73
  - lib/bob/api/employee/variable_payments.rb
73
74
  - lib/bob/api/employee/work_history.rb