Class: VAProfile::Service
- Inherits:
-
Common::Client::Base
- Object
- Common::Client::Base
- VAProfile::Service
- Defined in:
- lib/va_profile/service.rb
Direct Known Subclasses
AddressValidation::Service, Communication::Service, ContactInformation::Service, Demographics::Service, HealthBenefit::Service, MilitaryPersonnel::Service, Person::Service, VeteranStatus::Service
Constant Summary collapse
- STATSD_KEY_PREFIX =
VAProfile::Stats::STATSD_KEY_PREFIX
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(user) ⇒ Service
constructor
A new instance of Service.
- #perform(method, path, body = nil, headers = {}) ⇒ Object
Methods inherited from Common::Client::Base
Methods included from SentryLogging
#log_exception_to_sentry, #log_message_to_sentry, #non_nil_hash?, #normalize_level, #rails_logger
Constructor Details
#initialize(user) ⇒ Service
Returns a new instance of Service.
15 16 17 |
# File 'lib/va_profile/service.rb', line 15 def initialize(user) @user = user end |
Class Method Details
Instance Method Details
#perform(method, path, body = nil, headers = {}) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/va_profile/service.rb', line 19 def perform(method, path, body = nil, headers = {}) log_dates(body) VAProfile::Stats.increment('total_operations') config.base_request_headers.merge(headers) super(method, path, body, headers) end |