Class: Cb::Models::Resumes::WorkExperience

Inherits:
ApiResponseModel show all
Defined in:
lib/cb/models/implementations/resumes/work_experience.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

#company_nameObject

Returns the value of attribute company_name.



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

def company_name
  @company_name
end

#currently_employed_hereObject

Returns the value of attribute currently_employed_here.



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

def currently_employed_here
  @currently_employed_here
end

#employment_typeObject

Returns the value of attribute employment_type.



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

def employment_type
  @employment_type
end

#end_dateObject

Returns the value of attribute end_date.



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

def end_date
  @end_date
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#job_titleObject

Returns the value of attribute job_title.



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

def job_title
  @job_title
end

#start_dateObject

Returns the value of attribute start_date.



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

def start_date
  @start_date
end

Instance Method Details

#required_fieldsObject



28
29
30
# File 'lib/cb/models/implementations/resumes/work_experience.rb', line 28

def required_fields
  %w(jobTitle currentlyEmployedHere)
end

#set_model_propertiesObject



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

def set_model_properties
  @job_title = api_response['jobTitle']
  @company_name = api_response['companyName']
  @employment_type = api_response['employmentType']
  @start_date = api_response['startDate']
  @end_date = api_response['endDate']
  @currently_employed_here = api_response['currentlyEmployedHere']
  @id = api_response['id']
end