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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ff456467fd8aef10884057caf6e3b2d7dc2ea9976b64ffa2b2062b255e9b560
4
- data.tar.gz: 78db6ff1cf53e4dc3d836ad7b40f466ed96c34d5fd5b2f7bc10ee811e119c3eb
3
+ metadata.gz: dcac2674a597136d59e32eea777b9b7ea622bcbccde40f051ad202eb51bc1171
4
+ data.tar.gz: 579ba5e1a02c968a23835547235281fa1c45e5ccc1ee2ae072fa8d8653d60138
5
5
  SHA512:
6
- metadata.gz: '0834e93de4a38950e2d2a958690fce1429e86a96d3ca3d74150c1822c0efa23e143b281e242d56ea26cd4d7250e77a0ad2bcd226f944d860746b9db8e5b322ca'
7
- data.tar.gz: 65808f8f66a3aadbee453d51bc57a713159e9611772f20f28d9074dcad8fc6b34e436604942dc0aff46016461c4f7415458cfcf347723c7f6fa85048405e1988
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
@@ -12,6 +12,10 @@ module GreenhouseApi
12
12
  @api_key = api_key
13
13
  end
14
14
 
15
+ def get_one(resource, id)
16
+ base_client.get_one(resource, id)
17
+ end
18
+
15
19
  def list_many(resource, params = {})
16
20
  base_client.list_many(resource, params)
17
21
  end
@@ -1,4 +1,4 @@
1
1
  # typed: strict
2
2
  module GreenhouseApi
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
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.1
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.0.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: []