cb-api 7.4.0 → 7.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +1 -0
- data/lib/cb/requests/company/find.rb +26 -0
- data/lib/cb/responses/company/find.rb +39 -0
- data/lib/cb/utils/response_map.rb +2 -0
- data/lib/cb/version.rb +1 -1
- metadata +3 -1
data/README.md
CHANGED
@@ -0,0 +1,26 @@
|
|
1
|
+
require_relative '../base'
|
2
|
+
|
3
|
+
module Cb
|
4
|
+
module Requests
|
5
|
+
module Company
|
6
|
+
class Find < Base
|
7
|
+
|
8
|
+
def endpoint_uri
|
9
|
+
Cb.configuration.uri_company_find
|
10
|
+
end
|
11
|
+
|
12
|
+
def http_method
|
13
|
+
:get
|
14
|
+
end
|
15
|
+
|
16
|
+
def query
|
17
|
+
{
|
18
|
+
:CompanyDID => @args[:did],
|
19
|
+
:HostSite=> Cb.configuration.host_site
|
20
|
+
}
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'cb/responses/api_response'
|
2
|
+
|
3
|
+
module Cb
|
4
|
+
module Responses
|
5
|
+
module Company
|
6
|
+
class Find < ApiResponse
|
7
|
+
|
8
|
+
protected
|
9
|
+
|
10
|
+
def hash_containing_metadata
|
11
|
+
response[results_node]
|
12
|
+
end
|
13
|
+
|
14
|
+
def validate_api_hash
|
15
|
+
required_response_field(results_node, response)
|
16
|
+
required_response_field(company_profile_node, response[results_node])
|
17
|
+
end
|
18
|
+
|
19
|
+
def extract_models
|
20
|
+
Cb::Models::Company.new(company)
|
21
|
+
end
|
22
|
+
|
23
|
+
private
|
24
|
+
|
25
|
+
def results_node
|
26
|
+
"Results"
|
27
|
+
end
|
28
|
+
|
29
|
+
def company_profile_node
|
30
|
+
"CompanyProfileDetail"
|
31
|
+
end
|
32
|
+
|
33
|
+
def company
|
34
|
+
response[results_node][company_profile_node]
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -24,6 +24,8 @@ module Cb
|
|
24
24
|
|
25
25
|
Cb::Requests::Category::Search => Cb::Responses::Category::Search,
|
26
26
|
|
27
|
+
Cb::Requests::Company::Find => Cb::Responses::Company::Find,
|
28
|
+
|
27
29
|
Cb::Requests::User::ChangePassword => Cb::Responses::User::ChangePassword,
|
28
30
|
Cb::Requests::User::CheckExisting => Cb::Responses::User::CheckExisting,
|
29
31
|
Cb::Requests::User::Delete => Cb::Responses::User::Delete,
|
data/lib/cb/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cb-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.5.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -234,6 +234,7 @@ files:
|
|
234
234
|
- lib/cb/responses/saved_search/retrieve.rb
|
235
235
|
- lib/cb/responses/employee_types/search.rb
|
236
236
|
- lib/cb/responses/errors.rb
|
237
|
+
- lib/cb/responses/company/find.rb
|
237
238
|
- lib/cb/exceptions.rb
|
238
239
|
- lib/cb/config.rb
|
239
240
|
- lib/cb/models/api_response_model.rb
|
@@ -285,6 +286,7 @@ files:
|
|
285
286
|
- lib/cb/requests/base.rb
|
286
287
|
- lib/cb/requests/category/search.rb
|
287
288
|
- lib/cb/requests/application_external/submit_application.rb
|
289
|
+
- lib/cb/requests/company/find.rb
|
288
290
|
- lib/cb/convenience.rb
|
289
291
|
- lib/cb/clients/job_branding.rb
|
290
292
|
- lib/cb/clients/recommendation.rb
|