greenhouse_api 0.3.1 → 0.3.2
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/base_client.rb +9 -0
- data/lib/greenhouse_api/client.rb +4 -0
- data/lib/greenhouse_api/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcac2674a597136d59e32eea777b9b7ea622bcbccde40f051ad202eb51bc1171
|
4
|
+
data.tar.gz: 579ba5e1a02c968a23835547235281fa1c45e5ccc1ee2ae072fa8d8653d60138
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b689c40434ff819aed78a8a79938f0cd264cd0de2fbefdc6be105325add4f313cf11195b594ad6ce45e50bd24658de502db29971f37795859bc1ea569695776
|
7
|
+
data.tar.gz: 1a7158a04d7826095ff9d5258b41b78ee49908b40ce65653a095c7e7e0999f6419b80adbc6450d82b47ddcdb90efac8be60c84ce7196701149d9c9a1a68a2aa8
|
@@ -62,6 +62,15 @@ module GreenhouseApi
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
+
def get_one(resource, id)
|
66
|
+
response = request(
|
67
|
+
http_method: :get,
|
68
|
+
headers: headers,
|
69
|
+
endpoint: "#{resource}/#{id}"
|
70
|
+
)
|
71
|
+
compose_response(response)
|
72
|
+
end
|
73
|
+
|
65
74
|
def list_many(resource, params = {})
|
66
75
|
limit = params.delete(:limit)
|
67
76
|
page = params[:page] || 1
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: greenhouse_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florence Lau
|
8
8
|
- Tanner Johnson
|
9
9
|
- Quan Nguyen
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
13
|
date: 2021-03-11 00:00:00.000000000 Z
|
@@ -114,7 +114,7 @@ homepage: https://github.com/gusto/greenhouse_api
|
|
114
114
|
licenses: []
|
115
115
|
metadata:
|
116
116
|
homepage_uri: https://github.com/gusto/greenhouse_api
|
117
|
-
post_install_message:
|
117
|
+
post_install_message:
|
118
118
|
rdoc_options: []
|
119
119
|
require_paths:
|
120
120
|
- lib
|
@@ -129,8 +129,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '0'
|
131
131
|
requirements: []
|
132
|
-
rubygems_version: 3.
|
133
|
-
signing_key:
|
132
|
+
rubygems_version: 3.1.4
|
133
|
+
signing_key:
|
134
134
|
specification_version: 4
|
135
135
|
summary: API client for working with Greenhouse Harvest API
|
136
136
|
test_files: []
|