Class: DaVinciPDexTestKit::PDexPayerClient::MockServer::BinaryEndpoint
- Inherits:
-
ProxyEndpoint
- Object
- Inferno::DSL::SuiteEndpoint
- ProxyEndpoint
- DaVinciPDexTestKit::PDexPayerClient::MockServer::BinaryEndpoint
- Defined in:
- lib/davinci_pdex_test_kit/pdex_payer_client/mock_server/binary_endpoint.rb
Constant Summary
Constants included from URLs
URLs::AUTHORIZATION_PATH, URLs::BASE_FHIR_PATH, URLs::BINARY_PATH, URLs::EVERYTHING_PATH, URLs::EXPORT_PATH, URLs::EXPORT_STATUS_PATH, URLs::INSTANCE_PATH, URLs::MEMBER_MATCH_PATH, URLs::METADATA_PATH, URLs::PATIENT_INSTANCE_PATH, URLs::PATIENT_PATH, URLs::RESOURCE_PATH, URLs::RESUME_CLINICAL_DATA_PATH, URLs::RESUME_FAIL_PATH, URLs::RESUME_PASS_PATH, URLs::TOKEN_PATH
Instance Method Summary collapse
Methods inherited from ProxyEndpoint
#server_proxy, #test_run_identifier, #update_result
Methods included from URLs
#base_url, #client_fhir_base_url, #fhir_base_url, #suite_id
Instance Method Details
#make_response ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/davinci_pdex_test_kit/pdex_payer_client/mock_server/binary_endpoint.rb', line 9 def make_response binary_id = request.url.split('/').last server_response = server_proxy.get('Binary/'+binary_id) do |request| request.headers['Accept'] = 'application/fhir+ndjson' end response.format = 'application/fhir+ndjson' response.body = server_response.body response.status = server_response.status end |
#tags ⇒ Object
19 20 21 |
# File 'lib/davinci_pdex_test_kit/pdex_payer_client/mock_server/binary_endpoint.rb', line 19 def [BINARY_TAG] end |