Class: Cb::Requests::Resumes::Get

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

Instance Attribute Summary

Attributes inherited from Base

#args

Instance Method Summary collapse

Methods inherited from Base

#base_uri, #body, #initialize

Constructor Details

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

Instance Method Details

#endpoint_uriObject



17
18
19
# File 'lib/cb/requests/resumes/get.rb', line 17

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

#headersObject



31
32
33
34
35
36
37
# File 'lib/cb/requests/resumes/get.rb', line 31

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

#http_methodObject



21
22
23
# File 'lib/cb/requests/resumes/get.rb', line 21

def http_method
  :get
end

#queryObject



25
26
27
28
29
# File 'lib/cb/requests/resumes/get.rb', line 25

def query
  {
    externalUserID: args[:external_user_id]
  }
end