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.



5
6
7
# File 'lib/cb/models/implementations/resumes/work_experience.rb', line 5

def company_name
  @company_name
end

#currently_employed_hereObject

Returns the value of attribute currently_employed_here.



5
6
7
# File 'lib/cb/models/implementations/resumes/work_experience.rb', line 5

def currently_employed_here
  @currently_employed_here
end

#employment_typeObject

Returns the value of attribute employment_type.



5
6
7
# File 'lib/cb/models/implementations/resumes/work_experience.rb', line 5

def employment_type
  @employment_type
end

#end_dateObject

Returns the value of attribute end_date.



5
6
7
# File 'lib/cb/models/implementations/resumes/work_experience.rb', line 5

def end_date
  @end_date
end

#job_titleObject

Returns the value of attribute job_title.



5
6
7
# File 'lib/cb/models/implementations/resumes/work_experience.rb', line 5

def job_title
  @job_title
end

#start_dateObject

Returns the value of attribute start_date.



5
6
7
# File 'lib/cb/models/implementations/resumes/work_experience.rb', line 5

def start_date
  @start_date
end

Instance Method Details

#required_fieldsObject



17
18
19
# File 'lib/cb/models/implementations/resumes/work_experience.rb', line 17

def required_fields
  ['jobTitle', 'currentlyEmployedHere']
end

#set_model_propertiesObject



8
9
10
11
12
13
14
15
# File 'lib/cb/models/implementations/resumes/work_experience.rb', line 8

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']
end