class Cb::Requests::Resumes::Post

Public Instance Methods

body() click to toggle source
# File lib/cb/requests/resumes/post.rb, line 25
def body
  {
    desiredJobTitle: args[:desired_job_title],
    privacySetting: args[:privacy_setting],
    resumeFileData: args[:resume_file_data],
    resumeFileName: args[:resume_file_name],
    hostSite: args[:host_site],
    entryPath: args[:entry_path]
  }.to_json
end
endpoint_uri() click to toggle source
# File lib/cb/requests/resumes/post.rb, line 17
def endpoint_uri
  Cb.configuration.uri_resume_post
end
headers() click to toggle source
# File lib/cb/requests/resumes/post.rb, line 36
def headers
  {
    'HostSite' => Cb.configuration.host_site,
    'Content-Type' => 'application/json;version=1.0',
    'Authorization' => three_scale_bearer_token
  }
end
http_method() click to toggle source
# File lib/cb/requests/resumes/post.rb, line 21
def http_method
  :post
end
three_scale_bearer_token() click to toggle source
# File lib/cb/requests/resumes/post.rb, line 44
def three_scale_bearer_token
  "Bearer #{args[:three_scale_token]}"
end