Class: IHub::Appointments::Service
- Inherits:
-
Service
- Object
- Common::Client::Base
- Service
- IHub::Appointments::Service
- Includes:
- Common::Client::Concerns::Monitoring
- Defined in:
- lib/ihub/appointments/service.rb
Constant Summary
Constants inherited from Service
Instance Method Summary collapse
-
#appointments ⇒ IHub::Appointments::Response
Fetches a collection of veteran appointment data from iHub.
Methods included from Common::Client::Concerns::Monitoring
Methods inherited from Service
Methods inherited from Common::Client::Base
configuration, #raise_backend_exception
Methods included from SentryLogging
#log_exception_to_sentry, #log_message_to_sentry, #non_nil_hash?, #normalize_level, #rails_logger
Constructor Details
This class inherits a constructor from IHub::Service
Instance Method Details
#appointments ⇒ IHub::Appointments::Response
Fetches a collection of veteran appointment data from iHub.
Per iHub docs, requires a service parameter of noFilter=true, in non-production environments.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/ihub/appointments/service.rb', line 45 def appointments icn_present! with_monitoring do response = perform(:get, appointments_url, nil) report_error!(response) IHub::Appointments::Response.from(response) end rescue => e Raven.extra_context( message: e., url: config.base_path ) Raven.(ihub: 'appointments') raise e end |