bobhr 0.5.20 → 0.5.22

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: b8c2dbce2a29b1cbea28d746c699bdebedf1975662c8a5560e068a5e13a41fb2
4
- data.tar.gz: 4baffb042fa6fae3be5af2380a34b2ca09a740c6e43e384e2cf615690055d1aa
3
+ metadata.gz: 65cd9f915b533cbffabb497fe9ed79d14b425bd4f97975a26600eb17f84aa5c9
4
+ data.tar.gz: f0ab5138416ade30cef2c9fc2cf71b1fecba59c0cdc5341306e6e7f86b0c75cd
5
5
  SHA512:
6
- metadata.gz: ec8d5741876e58f7587e70f9c872a4c238c4de0e3544c16592a43dcb5e5d67e82348d3d652ac960aa05e4d8031d528856dc5b1451de09500ab7450e8442f6078
7
- data.tar.gz: 92585569a52c715a290dbb8a19b299fc79a647ec33cd3b4a413a86f296b25d232f55d3cf4c728a9b68b785f16426f4cd3d2360994d6e70ac0e130addd2828a37
6
+ metadata.gz: 2b135abbcfa70dcd7cdf9d160cd989c326e596e70433d8bc098aa85073cf69c456d9efbf15331119b6b223661d5ad2af6a876b74aab078b32761dae47ecbd153
7
+ data.tar.gz: 15eee4533959d1221b107c309799bba14e8790c4e9c2c9ce4f6a644d8f4c73d4c95e5a46b97f0a6c77af0c2d7ead688e2d05fbcb43a8840cbf6febcd9f24c9ed
@@ -48,6 +48,10 @@ module Bob
48
48
  end
49
49
  end
50
50
 
51
+ def self.update(employee_id:, params:)
52
+ put("people/#{employee_id}", params)
53
+ end
54
+
51
55
  # start date needs to be in ISO format
52
56
  def self.update_start_date(employee_id, start_date)
53
57
  post("employees/#{employee_id}", { startDate: start_date })
@@ -31,11 +31,11 @@ module Models
31
31
  end
32
32
 
33
33
  def city
34
- address.site_city || address.city
34
+ address.city
35
35
  end
36
36
 
37
37
  def country
38
- address.country || address.site_country
38
+ address.country
39
39
  end
40
40
 
41
41
  def role_level
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.20'
4
+ VERSION = '0.5.22'
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.20
4
+ version: 0.5.22
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-10-12 00:00:00.000000000 Z
11
+ date: 2022-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  - !ruby/object:Gem::Version
135
135
  version: '0'
136
136
  requirements: []
137
- rubygems_version: 3.2.31
137
+ rubygems_version: 3.3.7
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: Ruby gem for Bob API