Class: Cb::Models::Resumes::SalaryInformation

Inherits:
ApiResponseModel show all
Defined in:
lib/cb/models/implementations/resumes/salary_information.rb

Instance Attribute Summary collapse

Attributes inherited from ApiResponseModel

#api_response

Instance Method Summary collapse

Methods inherited from ApiResponseModel

#initialize

Constructor Details

This class inherits a constructor from Cb::Models::ApiResponseModel

Instance Attribute Details

#annual_bonusObject

Returns the value of attribute annual_bonus.



15
16
17
# File 'lib/cb/models/implementations/resumes/salary_information.rb', line 15

def annual_bonus
  @annual_bonus
end

#annual_commissionObject

Returns the value of attribute annual_commission.



15
16
17
# File 'lib/cb/models/implementations/resumes/salary_information.rb', line 15

def annual_commission
  @annual_commission
end

#currency_codeObject

Returns the value of attribute currency_code.



15
16
17
# File 'lib/cb/models/implementations/resumes/salary_information.rb', line 15

def currency_code
  @currency_code
end

#most_recent_pay_amountObject

Returns the value of attribute most_recent_pay_amount.



15
16
17
# File 'lib/cb/models/implementations/resumes/salary_information.rb', line 15

def most_recent_pay_amount
  @most_recent_pay_amount
end

#per_hour_or_per_yearObject

Returns the value of attribute per_hour_or_per_year.



15
16
17
# File 'lib/cb/models/implementations/resumes/salary_information.rb', line 15

def per_hour_or_per_year
  @per_hour_or_per_year
end

#work_experience_idObject

Returns the value of attribute work_experience_id.



15
16
17
# File 'lib/cb/models/implementations/resumes/salary_information.rb', line 15

def work_experience_id
  @work_experience_id
end

Instance Method Details

#required_fieldsObject



27
28
29
# File 'lib/cb/models/implementations/resumes/salary_information.rb', line 27

def required_fields
  %w(PerHourOrPerYear mostRecentPayAmount)
end

#set_model_propertiesObject



18
19
20
21
22
23
24
25
# File 'lib/cb/models/implementations/resumes/salary_information.rb', line 18

def set_model_properties
  @most_recent_pay_amount = get_api_response 'mostRecentPayAmount'
  @per_hour_or_per_year = get_api_response 'PerHourOrPerYear'
  @currency_code = get_api_response 'CurrencyCode'
  @annual_bonus = get_api_response 'annualBonus'
  @annual_commission = get_api_response 'annualCommission'
  @work_experience_id = get_api_response 'workExperienceId'
end