Class: Cb::Requests::Recommendations::Resume
- Inherits:
-
Base
- Object
- Base
- Cb::Requests::Recommendations::Resume
show all
- Defined in:
- lib/cb/requests/recommendations/resume_recs.rb
Instance Attribute Summary
Attributes inherited from Base
#args
Instance Method Summary
collapse
Methods inherited from Base
#base_uri, #body, #initialize
Instance Method Details
#endpoint_uri ⇒ Object
8
9
10
|
# File 'lib/cb/requests/recommendations/resume_recs.rb', line 8
def endpoint_uri
Cb.configuration.uri_recommendation_for_resume.sub(':resume_hash', @args[:resume_hash].to_s)
end
|
16
17
18
19
20
21
22
|
# File 'lib/cb/requests/recommendations/resume_recs.rb', line 16
def
{
'DeveloperKey' => Cb.configuration.dev_key,
'HostSite' => Cb.configuration.host_site,
'Content-Type' => 'application/json'
}
end
|
#http_method ⇒ Object
12
13
14
|
# File 'lib/cb/requests/recommendations/resume_recs.rb', line 12
def http_method
:get
end
|
#query ⇒ Object
24
25
26
27
28
29
|
# File 'lib/cb/requests/recommendations/resume_recs.rb', line 24
def query
{
:externalID => args[:external_user_id],
:countLimit => args[:countLimit] || 25
}
end
|