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 +4 -4
- data/lib/greenhouse_api/client.rb +19 -0
- data/lib/greenhouse_api/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: 830ea391f1b8d83fb74fa520488aa0e8992b6be8766db0279ab2ed12ecb8d186
|
4
|
+
data.tar.gz: 7d858fc9cbcf1ee073f1e7dbe1c57f9fe9599b539f3cac259054c550ddd57a35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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:
|
13
|
+
date: 2021-02-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faraday
|