greenhouse_api 0.1.11 → 0.1.12

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: 251acd5051c995e9fb934939882496cdd3746f01fbf2a53c925cf05a4b74c7fd
4
- data.tar.gz: f723a91437727ad6bac4bc807c9057700315a21b92d0a7207ea515d9e142a7a4
3
+ metadata.gz: 830ea391f1b8d83fb74fa520488aa0e8992b6be8766db0279ab2ed12ecb8d186
4
+ data.tar.gz: 7d858fc9cbcf1ee073f1e7dbe1c57f9fe9599b539f3cac259054c550ddd57a35
5
5
  SHA512:
6
- metadata.gz: d99604f62c19be4dba917c8493f55dc148a40aab4fba697b4464bafb08e7fbc02f3ddc682e5809bc1e270e3785b8adb635c3067b192f3c78b2ee48d3a902fc9d
7
- data.tar.gz: 780cce37fb60f9a9f7f23bdd10dde4f6ffebe24c2cce0fea98cb8ceb04822d943ca9b1f026e6dae797d8be742b509285750dc1139e8bed92a51fcebe591277e5
6
+ metadata.gz: 490a9d4d9bdb550a1151d4b4e704f698868c93d3f2c2629eaa0ba22eca8f65e873d35cb3ac7ac83b7cf8ce3b83bef3f78c60fc9380982ebf421b48f40642acf3
7
+ data.tar.gz: b47bd1b90c371069f5512ca9e60573b4bf322bda04b5c7c8d1228e9a792b69b97db99ee54324946f3d3be8de27281e9454f5867abd94b6f522b014a3a0602ce6
@@ -27,6 +27,25 @@ module GreenhouseApi
27
27
  list_many('candidates', params)
28
28
  end
29
29
 
30
+ def get_current_offer_for_application(application_id)
31
+ response = request(
32
+ http_method: :get,
33
+ headers: headers,
34
+ endpoint: "applications/#{application_id}/offers/current_offer",
35
+ params: {}
36
+ )
37
+
38
+ if response.status == 200
39
+ Response.new(
40
+ body: response.body,
41
+ headers: response.headers,
42
+ status: response.status
43
+ )
44
+ else
45
+ response
46
+ end
47
+ end
48
+
30
49
  def list_many(resource, params = {})
31
50
  limit = params.delete(:limit)
32
51
  page = 1
@@ -1,3 +1,3 @@
1
1
  module GreenhouseApi
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: greenhouse_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florence Lau
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2020-12-02 00:00:00.000000000 Z
13
+ date: 2021-02-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday