cb-api 15.1.0 → 16.0.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/CHANGELOG.md CHANGED
@@ -3,6 +3,8 @@ Version History
3
3
  * All Version bumps are required to update this file as well!!
4
4
  ----
5
5
 
6
+ * 16.0.0 Modifying the Resume model to reflect the changes made in the API (Removal of job title from salary and
7
+ addition of id to work experience and work Experience Id to salary
6
8
  * 15.1.0 Added resume post
7
9
  * 15.0.3 Add desc to doc.rake so it shows in `rake -T`
8
10
  * 15.0.2 Include the rake tasks in the gem
@@ -3,20 +3,27 @@ module Cb
3
3
  module Resumes
4
4
  class SalaryInformation < ApiResponseModel
5
5
  attr_accessor :most_recent_pay_amount, :per_hour_or_per_year, :currency_code,
6
- :job_title, :annual_bonus, :annual_commission
6
+ :annual_bonus, :annual_commission, :work_experience_id
7
7
 
8
8
  def set_model_properties
9
- @most_recent_pay_amount = api_response['mostRecentPayAmount']
10
- @per_hour_or_per_year = api_response['PerHourOrPerYear']
11
- @currency_code = api_response['CurrencyCode']
12
- @job_title = api_response['jobTitle']
13
- @annual_bonus = api_response['annualBonus']
14
- @annual_commission = api_response['annualCommission']
9
+ @most_recent_pay_amount = get_api_response 'mostRecentPayAmount'
10
+ @per_hour_or_per_year = get_api_response 'PerHourOrPerYear'
11
+ @currency_code = get_api_response 'CurrencyCode'
12
+ @annual_bonus = get_api_response 'annualBonus'
13
+ @annual_commission = get_api_response 'annualCommission'
14
+ @work_experience_id = get_api_response 'workExperienceId'
15
15
  end
16
16
 
17
17
  def required_fields
18
18
  ['PerHourOrPerYear', 'mostRecentPayAmount']
19
19
  end
20
+
21
+ private
22
+
23
+ def get_api_response(api_key)
24
+ api_response[api_key]
25
+ end
26
+
20
27
  end
21
28
  end
22
29
  end
@@ -3,7 +3,7 @@ module Cb
3
3
  module Resumes
4
4
  class WorkExperience < ApiResponseModel
5
5
  attr_accessor :job_title, :company_name, :employment_type, :start_date, :end_date,
6
- :currently_employed_here
6
+ :currently_employed_here, :id
7
7
 
8
8
  def set_model_properties
9
9
  @job_title = api_response['jobTitle']
@@ -12,6 +12,7 @@ module Cb
12
12
  @start_date = api_response['startDate']
13
13
  @end_date = api_response['endDate']
14
14
  @currently_employed_here = api_response['currentlyEmployedHere']
15
+ @id = api_response['id']
15
16
  end
16
17
 
17
18
  def required_fields
data/lib/cb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cb
2
- VERSION = '15.1.0'
2
+ VERSION = '16.0.0'
3
3
  end
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: 15.1.0
4
+ version: 16.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-01-15 00:00:00.000000000 Z
12
+ date: 2015-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty