class Cb::Models::Resume

Attributes

desired_job_title[RW]
educations[RW]
government_and_military[RW]
privacy_setting[RW]
relocations[RW]
resume_hash[RW]
salary_information[RW]
skills_and_qualifications[RW]
user_identifier[RW]
work_experience[RW]

Public Instance Methods

required_fields() click to toggle source
# File lib/cb/models/implementations/resume.rb, line 30
def required_fields
  ['userIdentifier']
end
set_model_properties() click to toggle source
# File lib/cb/models/implementations/resume.rb, line 17
def set_model_properties
  @desired_job_title = api_response['desiredJobTitle']
  @user_identifier = api_response['userIdentifier']
  @resume_hash = api_response['resumeHash']
  @privacy_setting = api_response['privacySetting']
  @work_experience = extract_work_experience
  @salary_information = extract_salary_information
  @educations = extract_educations
  @skills_and_qualifications = extract_skills_and_qualifications
  @relocations = extract_relocations
  @government_and_military = extract_government_and_military
end

Private Instance Methods

extract_educations() click to toggle source
# File lib/cb/models/implementations/resume.rb, line 50
def extract_educations
  unless api_response['educations'].nil?
    api_response['educations'].collect do |education|
      Resumes::Education.new(education)
    end
  end
end
extract_government_and_military() click to toggle source
# File lib/cb/models/implementations/resume.rb, line 72
def extract_government_and_military
  unless api_response['governmentAndMilitary'].nil?
    Resumes::GovernmentAndMilitary.new(api_response['governmentAndMilitary'])
  end
end
extract_relocations() click to toggle source
# File lib/cb/models/implementations/resume.rb, line 64
def extract_relocations
  unless api_response['relocations'].nil?
    api_response['relocations'].collect do |relocation|
      Resumes::Relocation.new(relocation)
    end
  end
end
extract_salary_information() click to toggle source
# File lib/cb/models/implementations/resume.rb, line 44
def extract_salary_information
  unless api_response['salaryInformation'].nil?
    Resumes::SalaryInformation.new(api_response['salaryInformation'])
  end
end
extract_skills_and_qualifications() click to toggle source
# File lib/cb/models/implementations/resume.rb, line 58
def extract_skills_and_qualifications
  unless api_response['skillsAndQualifications'].nil?
    Resumes::SkillsAndQualifications.new(api_response['skillsAndQualifications'])
  end
end
extract_work_experience() click to toggle source
# File lib/cb/models/implementations/resume.rb, line 36
def extract_work_experience
  unless api_response['workExperience'].nil?
    api_response['workExperience'].collect do |experience|
      Resumes::WorkExperience.new(experience)
    end
  end
end