Class: Cb::Clients::Base
- Inherits:
-
Object
show all
- Defined in:
- lib/cb/clients/base.rb
Direct Known Subclasses
AnonSavedSearch, Application, ApplicationExternal, BrowserID, Company, CoverLetters, DataList, ExpiredJob, Job, JobBranding, JobInsights, Recommendation, ResumeInsights, Resumes, SavedJobs, SavedSearch, TalentNetwork, User
Class Method Summary
collapse
Class Method Details
.cb_client ⇒ Object
15
16
17
|
# File 'lib/cb/clients/base.rb', line 15
def cb_client
@cb_client ||= Cb::Utils::Api.instance
end
|
19
20
21
22
23
24
25
|
# File 'lib/cb/clients/base.rb', line 19
def (args)
{
'Accept' => 'application/json',
'Authorization' => "Bearer #{ args[:oauth_token] }",
'Content-Type' => 'application/json'
}
end
|