Class: SmartRecruiters::InterviewsResource
- Inherits:
-
Resource
- Object
- Resource
- SmartRecruiters::InterviewsResource
show all
- Defined in:
- lib/smartrecruiters/resources/interviews.rb
Constant Summary
collapse
- INTERVIEWS_API =
'interviews-api/v201904'
Instance Attribute Summary
Attributes inherited from Resource
#client
Instance Method Summary
collapse
Methods inherited from Resource
#initialize
Instance Method Details
#create(**attributes) ⇒ Object
7
8
9
|
# File 'lib/smartrecruiters/resources/interviews.rb', line 7
def create(**attributes)
Interview.new post_request("#{INTERVIEWS_API}/interviews", body: attributes).body
end
|
#delete(interview_id:) ⇒ Object
19
20
21
|
# File 'lib/smartrecruiters/resources/interviews.rb', line 19
def delete(interview_id:)
delete_request("#{INTERVIEWS_API}/interviews/#{interview_id}")
end
|
#retrieve(interview_id:) ⇒ Object
11
12
13
|
# File 'lib/smartrecruiters/resources/interviews.rb', line 11
def retrieve(interview_id:)
Interview.new get_request("#{INTERVIEWS_API}/interviews/#{interview_id}").body
end
|
#update(interview_id:, **attributes) ⇒ Object
15
16
17
|
# File 'lib/smartrecruiters/resources/interviews.rb', line 15
def update(interview_id:, **attributes)
patch_request("#{INTERVIEWS_API}/interviews/#{interview_id}", body: attributes)
end
|