cb-api 17.4.0 → 18.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -0
- data/CONTRIBUTING.md +18 -0
- data/LICENSE +202 -0
- data/README.md +3 -1
- data/lib/cb.rb +12 -2
- data/lib/cb/client.rb +10 -0
- data/lib/cb/clients/anon_saved_search.rb +12 -4
- data/lib/cb/clients/application.rb +10 -2
- data/lib/cb/clients/application_external.rb +13 -5
- data/lib/cb/clients/category.rb +16 -8
- data/lib/cb/clients/company.rb +16 -8
- data/lib/cb/clients/education.rb +17 -9
- data/lib/cb/clients/employee_types.rb +11 -3
- data/lib/cb/clients/industry.rb +12 -3
- data/lib/cb/clients/job.rb +10 -2
- data/lib/cb/clients/job_branding.rb +13 -5
- data/lib/cb/clients/recommendation.rb +27 -18
- data/lib/cb/clients/saved_search.rb +21 -15
- data/lib/cb/clients/talent_network.rb +20 -12
- data/lib/cb/clients/user.rb +22 -14
- data/lib/cb/config.rb +64 -54
- data/lib/cb/convenience.rb +22 -13
- data/lib/cb/criteria/application/cover_letter.rb +10 -0
- data/lib/cb/criteria/application/create.rb +11 -1
- data/lib/cb/criteria/application/get.rb +10 -0
- data/lib/cb/criteria/application/response.rb +10 -0
- data/lib/cb/criteria/application/resume.rb +10 -0
- data/lib/cb/criteria/application/update.rb +10 -0
- data/lib/cb/criteria/job/details.rb +11 -1
- data/lib/cb/criteria/resumes/get_by_hash.rb +12 -2
- data/lib/cb/criteria/user/change_password.rb +21 -11
- data/lib/cb/criteria/user/delete.rb +18 -11
- data/lib/cb/exceptions.rb +14 -4
- data/lib/cb/models/api_call_model.rb +10 -1
- data/lib/cb/models/api_response_model.rb +15 -7
- data/lib/cb/models/implementations/application.rb +10 -1
- data/lib/cb/models/implementations/application/cover_letter.rb +10 -1
- data/lib/cb/models/implementations/application/form.rb +13 -5
- data/lib/cb/models/implementations/application/response.rb +10 -1
- data/lib/cb/models/implementations/application/resume.rb +10 -1
- data/lib/cb/models/implementations/application_external.rb +12 -3
- data/lib/cb/models/implementations/branding/media.rb +10 -2
- data/lib/cb/models/implementations/branding/section.rb +10 -2
- data/lib/cb/models/implementations/branding/style.rb +10 -2
- data/lib/cb/models/implementations/branding/styles/base.rb +12 -4
- data/lib/cb/models/implementations/branding/styles/buttons.rb +10 -2
- data/lib/cb/models/implementations/branding/styles/company_info.rb +11 -3
- data/lib/cb/models/implementations/branding/styles/container.rb +11 -3
- data/lib/cb/models/implementations/branding/styles/content.rb +10 -2
- data/lib/cb/models/implementations/branding/styles/css_adapter.rb +10 -2
- data/lib/cb/models/implementations/branding/styles/headings.rb +10 -2
- data/lib/cb/models/implementations/branding/styles/job_details.rb +10 -2
- data/lib/cb/models/implementations/branding/styles/page.rb +10 -2
- data/lib/cb/models/implementations/branding/widget.rb +10 -2
- data/lib/cb/models/implementations/category.rb +17 -7
- data/lib/cb/models/implementations/collapsed_job_results.rb +10 -1
- data/lib/cb/models/implementations/collapsed_jobs.rb +10 -0
- data/lib/cb/models/implementations/company.rb +17 -10
- data/lib/cb/models/implementations/data_lists/resume_data_list.rb +11 -1
- data/lib/cb/models/implementations/education.rb +10 -0
- data/lib/cb/models/implementations/email_subscription.rb +10 -0
- data/lib/cb/models/implementations/employee_type.rb +14 -4
- data/lib/cb/models/implementations/industry.rb +14 -6
- data/lib/cb/models/implementations/job.rb +24 -20
- data/lib/cb/models/implementations/job_branding.rb +13 -5
- data/lib/cb/models/implementations/job_results.rb +10 -2
- data/lib/cb/models/implementations/job_results_v3.rb +11 -1
- data/lib/cb/models/implementations/recommended_job.rb +10 -0
- data/lib/cb/models/implementations/resume.rb +11 -1
- data/lib/cb/models/implementations/resume_document.rb +10 -0
- data/lib/cb/models/implementations/resume_listing.rb +11 -1
- data/lib/cb/models/implementations/resumes/country_code.rb +10 -0
- data/lib/cb/models/implementations/resumes/education.rb +11 -1
- data/lib/cb/models/implementations/resumes/government_and_military.rb +11 -1
- data/lib/cb/models/implementations/resumes/language_code.rb +12 -2
- data/lib/cb/models/implementations/resumes/relocation.rb +11 -1
- data/lib/cb/models/implementations/resumes/salary_information.rb +11 -2
- data/lib/cb/models/implementations/resumes/skills_and_qualifications.rb +10 -0
- data/lib/cb/models/implementations/resumes/work_experience.rb +11 -1
- data/lib/cb/models/implementations/saved_search.rb +83 -73
- data/lib/cb/models/implementations/state.rb +11 -2
- data/lib/cb/models/implementations/talent_network.rb +44 -36
- data/lib/cb/models/implementations/user.rb +12 -2
- data/lib/cb/models/implementations/work_status.rb +12 -3
- data/lib/cb/requests/anonymous_saved_search/create.rb +10 -2
- data/lib/cb/requests/anonymous_saved_search/delete.rb +10 -2
- data/lib/cb/requests/application/create.rb +10 -1
- data/lib/cb/requests/application/form.rb +10 -2
- data/lib/cb/requests/application/get.rb +10 -1
- data/lib/cb/requests/application/update.rb +10 -1
- data/lib/cb/requests/application/utils.rb +10 -1
- data/lib/cb/requests/application_external/submit_application.rb +10 -2
- data/lib/cb/requests/base.rb +13 -5
- data/lib/cb/requests/category/search.rb +10 -2
- data/lib/cb/requests/company/find.rb +12 -4
- data/lib/cb/requests/data_lists/countries.rb +10 -0
- data/lib/cb/requests/data_lists/data_list_base.rb +11 -1
- data/lib/cb/requests/data_lists/desired_job_type.rb +10 -0
- data/lib/cb/requests/data_lists/education_codes.rb +10 -0
- data/lib/cb/requests/data_lists/languages.rb +10 -0
- data/lib/cb/requests/data_lists/state.rb +12 -2
- data/lib/cb/requests/education/get.rb +10 -2
- data/lib/cb/requests/email_subscription/modify.rb +13 -5
- data/lib/cb/requests/email_subscription/retrieve.rb +10 -2
- data/lib/cb/requests/job_search/get.rb +12 -3
- data/lib/cb/requests/recommendations/resume_recs.rb +12 -4
- data/lib/cb/requests/resumes/delete.rb +10 -0
- data/lib/cb/requests/resumes/get.rb +10 -0
- data/lib/cb/requests/resumes/language_codes.rb +12 -2
- data/lib/cb/requests/resumes/list.rb +12 -2
- data/lib/cb/requests/resumes/post.rb +11 -1
- data/lib/cb/requests/resumes/put.rb +11 -3
- data/lib/cb/requests/user/change_password.rb +10 -2
- data/lib/cb/requests/user/check_existing.rb +10 -2
- data/lib/cb/requests/user/delete.rb +10 -2
- data/lib/cb/requests/user/retrieve.rb +10 -2
- data/lib/cb/requests/user/temporary_password.rb +11 -3
- data/lib/cb/requests/work_status/list.rb +10 -2
- data/lib/cb/responses/Recommendation/recommendations.rb +10 -1
- data/lib/cb/responses/anonymous_saved_search/create.rb +10 -2
- data/lib/cb/responses/anonymous_saved_search/delete.rb +10 -2
- data/lib/cb/responses/api_response.rb +19 -9
- data/lib/cb/responses/application.rb +10 -2
- data/lib/cb/responses/application/application_form.rb +10 -2
- data/lib/cb/responses/application_external/submit_application.rb +11 -2
- data/lib/cb/responses/category/search.rb +13 -4
- data/lib/cb/responses/company/find.rb +12 -3
- data/lib/cb/responses/data_list/state.rb +10 -1
- data/lib/cb/responses/data_lists/resume_data_list.rb +10 -1
- data/lib/cb/responses/education/get.rb +13 -4
- data/lib/cb/responses/email_subscription/response.rb +11 -2
- data/lib/cb/responses/employee_types/search.rb +10 -3
- data/lib/cb/responses/errors.rb +14 -5
- data/lib/cb/responses/industry/search.rb +11 -4
- data/lib/cb/responses/job/search.rb +10 -1
- data/lib/cb/responses/job/search_v3.rb +10 -1
- data/lib/cb/responses/job/singular.rb +13 -4
- data/lib/cb/responses/metadata.rb +11 -2
- data/lib/cb/responses/resumes/language_codes.rb +11 -0
- data/lib/cb/responses/resumes/resume.rb +10 -1
- data/lib/cb/responses/resumes/resume_document.rb +10 -0
- data/lib/cb/responses/resumes/resume_list.rb +10 -0
- data/lib/cb/responses/saved_search/delete.rb +11 -3
- data/lib/cb/responses/saved_search/list.rb +10 -2
- data/lib/cb/responses/saved_search/retrieve.rb +10 -2
- data/lib/cb/responses/saved_search/singular.rb +10 -2
- data/lib/cb/responses/saved_search/update.rb +11 -3
- data/lib/cb/responses/timing.rb +15 -6
- data/lib/cb/responses/user/change_password.rb +12 -4
- data/lib/cb/responses/user/check_existing.rb +11 -3
- data/lib/cb/responses/user/delete.rb +11 -3
- data/lib/cb/responses/user/retrieve.rb +10 -3
- data/lib/cb/responses/user/temporary_password.rb +10 -3
- data/lib/cb/responses/work_status/list.rb +12 -4
- data/lib/cb/utils/api.rb +22 -12
- data/lib/cb/utils/console_observer.rb +11 -2
- data/lib/cb/utils/country.rb +14 -4
- data/lib/cb/utils/fluid_attributes.rb +11 -4
- data/lib/cb/utils/meta_values.rb +10 -0
- data/lib/cb/utils/response_array_extractor.rb +14 -6
- data/lib/cb/utils/response_map.rb +12 -3
- data/lib/cb/utils/validator.rb +21 -19
- data/lib/cb/version.rb +11 -1
- data/lib/tasks/cb.rake +11 -1
- data/lib/tasks/doc.rake +15 -5
- metadata +5 -3
@@ -1,3 +1,13 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Models
|
3
13
|
class Job < ApiResponseModel
|
@@ -6,7 +16,7 @@ module Cb
|
|
6
16
|
:industry_codes, :manages_others_code,
|
7
17
|
:contact_email_url, :contact_fax, :contact_name, :contact_phone,
|
8
18
|
:company_name, :company_did, :company_details_url, :company_image_url, :company,
|
9
|
-
:description_teaser, :external_apply_url, :job_tracking_url,
|
19
|
+
:description_teaser, :external_apply_url, :job_tracking_url,
|
10
20
|
:location, :distance, :latitude, :longitude, :location_formatted, :location_metro_city,
|
11
21
|
:description, :requirements, :employment_type,
|
12
22
|
:details_url, :service_url, :similar_jobs_url, :apply_url,
|
@@ -17,15 +27,14 @@ module Cb
|
|
17
27
|
:manages_others_string,
|
18
28
|
:degree_required_code, :travel_required_code, :employment_type_code, :experience_required_code
|
19
29
|
|
20
|
-
attr_writer
|
21
|
-
|
22
|
-
|
30
|
+
attr_writer :external_application, :is_screener_apply,
|
31
|
+
:is_shared_job,
|
32
|
+
:relocation_covered, :manages_others
|
23
33
|
|
24
34
|
def initialize(args = {})
|
25
35
|
super(args)
|
26
36
|
end
|
27
37
|
|
28
|
-
|
29
38
|
def find_company
|
30
39
|
@company ||= Cb::CompanyApi.find_for self
|
31
40
|
end
|
@@ -96,7 +105,7 @@ module Cb
|
|
96
105
|
@location_metro_city = args['LocationMetroCity'] || ''
|
97
106
|
|
98
107
|
# Job Skin Related
|
99
|
-
@job_skin = args.
|
108
|
+
@job_skin = args.key?('JobSkin') && !args['JobSkin'].nil? ? args['JobSkin']['#cdata-section'] : ''
|
100
109
|
@job_skin_did = args['JobSkinDID'] || ''
|
101
110
|
@job_branding = @job_skin_did.empty? ? '' : Cb.job_branding.find_by_id(job_skin_did)
|
102
111
|
@job_tracking_url = args['JobTrackingURL'] || ''
|
@@ -105,9 +114,9 @@ module Cb
|
|
105
114
|
# Compensation
|
106
115
|
@pay = args['PayHighLowFormatted'] || args['Pay'] || ''
|
107
116
|
@pay_per = args['PayPer'] || ''
|
108
|
-
@commission = args.
|
109
|
-
@bonus = args.
|
110
|
-
@pay_other = args.
|
117
|
+
@commission = args.key?('PayCommission') && !args['PayCommission'].nil? ? args['PayCommission']['Money']['FormattedAmount'] : ''
|
118
|
+
@bonus = args.key?('PayBonus') && !args['PayBonus'].nil? ? args['PayBonus']['Money']['FormattedAmount'] : ''
|
119
|
+
@pay_other = args.key?('PayOther') && !args['PayOther'].nil? ? args['PayOther'] : ''
|
111
120
|
|
112
121
|
# Job Search related
|
113
122
|
@description_teaser = args['DescriptionTeaser'] || ''
|
@@ -169,36 +178,31 @@ module Cb
|
|
169
178
|
@city = args['LocationCity'] || ''
|
170
179
|
@zip = args['LocationPostalCode'] || ''
|
171
180
|
|
172
|
-
@company_name = figure_out_company_info(args['Company'],args['Company'],'CompanyName')
|
173
|
-
@company_details_url = figure_out_company_info(args['CompanyDetailsURL'],args['Company'],'CompanyDetailsURL')
|
174
|
-
|
181
|
+
@company_name = figure_out_company_info(args['Company'], args['Company'], 'CompanyName')
|
182
|
+
@company_details_url = figure_out_company_info(args['CompanyDetailsURL'], args['Company'], 'CompanyDetailsURL')
|
175
183
|
|
176
184
|
load_extra_fields(args)
|
177
|
-
|
178
|
-
|
179
185
|
end
|
180
186
|
|
181
|
-
def load_extra_fields(
|
182
|
-
#for internal use only :)
|
187
|
+
def load_extra_fields(_args)
|
188
|
+
# for internal use only :)
|
183
189
|
end
|
184
190
|
|
185
191
|
private
|
186
192
|
|
187
193
|
def figure_out_company_info(job_search, recommendation, rec_key)
|
188
|
-
#Job Search and Recommendations both use this class as a model. Unfortunately, they both return company_name and
|
194
|
+
# Job Search and Recommendations both use this class as a model. Unfortunately, they both return company_name and
|
189
195
|
# company_details_url in different ways. Job search returns it in args[company] and args[company_details_url],
|
190
196
|
# but recommendations returns it in args[company][key]. This has been ticketed to the API team, and this logic
|
191
197
|
# will be removed when they have fixed the issue.
|
192
|
-
if job_search.class != Hash && job_search !=
|
198
|
+
if job_search.class != Hash && job_search != ''
|
193
199
|
return job_search
|
194
200
|
elsif recommendation.class == Hash && !recommendation[rec_key].nil?
|
195
201
|
return recommendation[rec_key]
|
196
202
|
else
|
197
203
|
return ''
|
198
204
|
end
|
199
|
-
|
200
205
|
end
|
201
|
-
|
202
206
|
end
|
203
207
|
end
|
204
208
|
end
|
@@ -1,10 +1,19 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Models
|
3
13
|
class JobBranding
|
4
|
-
|
5
14
|
attr_accessor :name, :media, :sections, :styles, :widgets, :id, :account_id, :type, :errors, :show_widgets, :company_description
|
6
15
|
|
7
|
-
def initialize
|
16
|
+
def initialize(args = {})
|
8
17
|
@name = args['Name'] || ''
|
9
18
|
@id = args['Id'] || ''
|
10
19
|
@account_id = args['AccountId'] || ''
|
@@ -13,7 +22,8 @@ module Cb
|
|
13
22
|
@styles = Branding::Style.new args['Styles']
|
14
23
|
@errors = args['Errors'] || ''
|
15
24
|
@company_description = args['CompanyDescription'] || ''
|
16
|
-
@sections
|
25
|
+
@sections = []
|
26
|
+
@widgets = []
|
17
27
|
|
18
28
|
args['Sections'].each do |type, sections|
|
19
29
|
@sections << Branding::Section.new(type, sections) unless sections.nil?
|
@@ -26,9 +36,7 @@ module Cb
|
|
26
36
|
@widgets << Branding::Widget.new(type, url) unless url.nil?
|
27
37
|
end
|
28
38
|
end
|
29
|
-
|
30
39
|
end
|
31
|
-
|
32
40
|
end
|
33
41
|
end
|
34
42
|
end
|
@@ -1,3 +1,13 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Models
|
3
13
|
class JobResults
|
@@ -20,8 +30,6 @@ module Cb
|
|
20
30
|
Job.new(job_hash)
|
21
31
|
end
|
22
32
|
end
|
23
|
-
|
24
|
-
|
25
33
|
end
|
26
34
|
end
|
27
35
|
end
|
@@ -1,8 +1,18 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Models
|
3
13
|
class JobResultsV3
|
4
14
|
attr_reader :api_response
|
5
|
-
|
15
|
+
|
6
16
|
def initialize(response_hash = {})
|
7
17
|
@api_response = response_hash
|
8
18
|
end
|
@@ -1,3 +1,13 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Models
|
3
13
|
class RecommendedJob < ApiResponseModel
|
@@ -1,3 +1,13 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Models
|
3
13
|
class Resume < ApiResponseModel
|
@@ -15,7 +25,6 @@ module Cb
|
|
15
25
|
@skills_and_qualifications = extract_skills_and_qualifications
|
16
26
|
@relocations = extract_relocations
|
17
27
|
@government_and_military = extract_government_and_military
|
18
|
-
|
19
28
|
end
|
20
29
|
|
21
30
|
def required_fields
|
@@ -23,6 +32,7 @@ module Cb
|
|
23
32
|
end
|
24
33
|
|
25
34
|
private
|
35
|
+
|
26
36
|
def extract_work_experience
|
27
37
|
unless api_response['workExperience'].nil?
|
28
38
|
api_response['workExperience'].collect do |experience|
|
@@ -1,3 +1,13 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Models
|
3
13
|
class ResumeDocument < ApiResponseModel
|
@@ -1,3 +1,13 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Models
|
3
13
|
class ResumeListing < ApiResponseModel
|
@@ -12,7 +22,7 @@ module Cb
|
|
12
22
|
end
|
13
23
|
|
14
24
|
def required_fields
|
15
|
-
|
25
|
+
%w(Title ExternalID Visibility)
|
16
26
|
end
|
17
27
|
end
|
18
28
|
end
|
@@ -1,3 +1,13 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Models
|
3
13
|
class CountryCode < ApiResponseModel
|
@@ -1,3 +1,13 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Models
|
3
13
|
module Resumes
|
@@ -12,7 +22,7 @@ module Cb
|
|
12
22
|
end
|
13
23
|
|
14
24
|
def required_fields
|
15
|
-
|
25
|
+
%w(schoolName majorOrProgram)
|
16
26
|
end
|
17
27
|
end
|
18
28
|
end
|
@@ -1,3 +1,13 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Models
|
3
13
|
module Resumes
|
@@ -10,7 +20,7 @@ module Cb
|
|
10
20
|
end
|
11
21
|
|
12
22
|
def required_fields
|
13
|
-
|
23
|
+
%w(hasSecurityClearance militaryExperience)
|
14
24
|
end
|
15
25
|
end
|
16
26
|
end
|
@@ -1,7 +1,17 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Models
|
3
13
|
class LanguageCode < ApiResponseModel
|
4
|
-
attr_accessor :code
|
14
|
+
attr_accessor :code, :name
|
5
15
|
|
6
16
|
def set_model_properties
|
7
17
|
@code = api_response['Code']
|
@@ -9,7 +19,7 @@ module Cb
|
|
9
19
|
end
|
10
20
|
|
11
21
|
def required_fields
|
12
|
-
|
22
|
+
%w(Code Name)
|
13
23
|
end
|
14
24
|
end
|
15
25
|
end
|
@@ -1,3 +1,13 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Models
|
3
13
|
module Resumes
|
@@ -11,7 +21,7 @@ module Cb
|
|
11
21
|
end
|
12
22
|
|
13
23
|
def required_fields
|
14
|
-
|
24
|
+
%w(city adminArea countryCode)
|
15
25
|
end
|
16
26
|
end
|
17
27
|
end
|
@@ -1,3 +1,13 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Models
|
3
13
|
module Resumes
|
@@ -15,7 +25,7 @@ module Cb
|
|
15
25
|
end
|
16
26
|
|
17
27
|
def required_fields
|
18
|
-
|
28
|
+
%w(PerHourOrPerYear mostRecentPayAmount)
|
19
29
|
end
|
20
30
|
|
21
31
|
private
|
@@ -23,7 +33,6 @@ module Cb
|
|
23
33
|
def get_api_response(api_key)
|
24
34
|
api_response[api_key]
|
25
35
|
end
|
26
|
-
|
27
36
|
end
|
28
37
|
end
|
29
38
|
end
|
@@ -1,3 +1,13 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Models
|
3
13
|
module Resumes
|
@@ -1,3 +1,13 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Models
|
3
13
|
module Resumes
|
@@ -16,7 +26,7 @@ module Cb
|
|
16
26
|
end
|
17
27
|
|
18
28
|
def required_fields
|
19
|
-
|
29
|
+
%w(jobTitle currentlyEmployedHere)
|
20
30
|
end
|
21
31
|
end
|
22
32
|
end
|