Class: Cb::Requests::Resumes::Put

Inherits:
Base
  • Object
show all
Defined in:
lib/cb/requests/resumes/put.rb

Instance Attribute Summary

Attributes inherited from Base

#args

Instance Method Summary collapse

Methods inherited from Base

#base_uri, #initialize, #query

Constructor Details

This class inherits a constructor from Cb::Requests::Base

Instance Method Details

#bodyObject



23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/cb/requests/resumes/put.rb', line 23

def body
  {
    userIdentifier: args[:user_identifier],
    resumeHash: args[:resume_hash],
    desiredJobTitle: args[:desired_job_title],
    privacySetting: args[:privacy_setting],
    workExperience: extract_work_experience,
    salaryInformation: extract_salary_information,
    educations: extract_educations,
    skillsAndQualifications: extract_skills_and_qualifications,
    relocations: extract_relocations,
    governmentAndMilitary: extract_government_and_military
  }.to_json
end

#endpoint_uriObject



7
8
9
# File 'lib/cb/requests/resumes/put.rb', line 7

def endpoint_uri
  Cb.configuration.uri_resume_put.gsub(':resume_hash', args[:resume_hash].to_s)
end

#headersObject



15
16
17
18
19
20
21
# File 'lib/cb/requests/resumes/put.rb', line 15

def headers
  {
    'DeveloperKey' => Cb.configuration.dev_key,
    'HostSite' => Cb.configuration.host_site,
    'Content-Type' => 'application/json'
  }
end

#http_methodObject



11
12
13
# File 'lib/cb/requests/resumes/put.rb', line 11

def http_method
  :put
end