Class: Cb::Clients::Resumes

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

Class Method Summary collapse

Methods inherited from Base

cb_client

Class Method Details

.delete(args = {}) ⇒ Object



26
27
28
# File 'lib/cb/clients/resumes.rb', line 26

def delete(args = {})
  cb_client.cb_delete(Cb.configuration.uri_resume_delete.sub(':resume_hash', args[:resume_hash].to_s), query: { externalUserId: args[:external_user_id] }, headers: headers(args))
end

.get(args = {}) ⇒ Object



16
17
18
19
20
# File 'lib/cb/clients/resumes.rb', line 16

def get(args = {})
  uri = Cb.configuration.uri_resumes
  query_params = args[:site] ? { site: args[:site] } : {}
  cb_client.cb_get(uri, headers: headers(args), query: query_params)
end

.post(args = {}) ⇒ Object



22
23
24
# File 'lib/cb/clients/resumes.rb', line 22

def post(args = {})
  cb_client.cb_post(Cb.configuration.uri_resume_post, body: post_body(args), headers: headers(args))
end

.put(args = {}) ⇒ Object



30
31
32
# File 'lib/cb/clients/resumes.rb', line 30

def put(args = {})
  cb_client.cb_put(Cb.configuration.uri_resume_put.gsub(':resume_hash', args[:resume_hash].to_s), headers: headers(args), body: put_body(args))
end