Module: WolfCore::Burnett::MatchOperations
- Includes:
- HttpOperations
- Defined in:
- lib/wolf_core/application/burnett/match_operations/match_operattions.rb
Overview
rubocop:disable Style/Documentation
Instance Method Summary
collapse
-
#create_match(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:) ⇒ Object
-
#create_match!(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:, error_message:) ⇒ Object
-
#update_match(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:) ⇒ Object
-
#update_match!(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:, error_message:) ⇒ Object
#async_http_get, #async_http_post, #async_http_put, #http_get, #http_post, #http_put, #parse_http_response, #parsed_http_get, #parsed_http_post, #parsed_http_put, #safe_http_get, #safe_http_post, #safe_http_put, #validate_http_response
#log_object
Methods included from AsyncUtils
#run_async
#raise_service_error
Instance Method Details
#create_match(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:) ⇒ Object
16
17
18
19
20
21
22
23
|
# File 'lib/wolf_core/application/burnett/match_operations/match_operattions.rb', line 16
def create_match(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:)
response = http_get(
headers: { "Authorization" => "Bearer #{erecruit_token}" },
url: "#{erecruit_platform_url}/",
query: { tenant: tenant }
)
nil if response.code == 200
end
|
#create_match!(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:, error_message:) ⇒ Object
6
7
8
9
10
11
12
13
14
|
# File 'lib/wolf_core/application/burnett/match_operations/match_operattions.rb', line 6
def create_match!(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:, error_message:)
response = safe_http_post(
headers: { "Authorization" => "Bearer #{erecruit_token}" },
url: "#{erecruit_platform_url}/",
query: { tenant: tenant },
error_message: error_message
)
nil if response.code == 200
end
|
#update_match(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:) ⇒ Object
35
36
37
38
39
40
41
42
|
# File 'lib/wolf_core/application/burnett/match_operations/match_operattions.rb', line 35
def update_match(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:)
response = http_get(
headers: { "Authorization" => "Bearer #{erecruit_token}" },
url: "#{erecruit_platform_url}/",
query: { tenant: tenant }
)
nil if response.code == 200
end
|
#update_match!(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:, error_message:) ⇒ Object
25
26
27
28
29
30
31
32
33
|
# File 'lib/wolf_core/application/burnett/match_operations/match_operattions.rb', line 25
def update_match!(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:, error_message:)
response = safe_http_post(
headers: { "Authorization" => "Bearer #{erecruit_token}" },
url: "#{erecruit_platform_url}/",
query: { tenant: tenant },
error_message: error_message
)
nil if response.code == 200
end
|