Class: Rx::MedicationsClient
- Inherits:
-
Client
- Object
- Common::Client::Base
- Client
- Rx::MedicationsClient
- Defined in:
- lib/rx/medications_client.rb
Overview
Core class responsible for Rx API interface operations on va.gov
Constant Summary
Constants inherited from Client
Instance Attribute Summary
Attributes included from Common::Client::Concerns::MHVSessionBasedClient
Instance Method Summary collapse
Methods included from Common::Client::Concerns::MHVSessionBasedClient
#authenticate, #get_session, #initialize
Methods included from SentryLogging
#log_exception_to_sentry, #log_message_to_sentry, #non_nil_hash?, #normalize_level, #rails_logger
Methods inherited from Client
#get_active_rxs, #get_active_rxs_with_details, #get_all_rxs, #get_history_rxs, #get_preferences, #get_rx, #get_rx_details, #get_tracking_history_rx, #get_tracking_rx, #post_preferences, #post_refill_rx, #post_refill_rxs, #request
Methods inherited from Common::Client::Base
configuration, #raise_backend_exception
Instance Method Details
#auth_headers ⇒ Object
19 20 21 22 |
# File 'lib/rx/medications_client.rb', line 19 def auth_headers config.base_request_headers.merge('appToken' => config.app_token_va_gov, 'mhvCorrelationId' => session.user_id.to_s) end |