Class: EVSS::ReferenceData::Service
- Inherits:
-
Service
- Object
- Common::Client::Base
- Service
- EVSS::ReferenceData::Service
- Defined in:
- lib/evss/reference_data/service.rb
Constant Summary
Constants inherited from Service
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
-
#get_countries ⇒ EVSS::PCIUAddress::CountriesResponse
Creates an object containing an array of country names.
- #get_separation_locations ⇒ Object
-
#get_states ⇒ EVSS::PCIUAddress::StatesResponse
Creates an object containing an array of state names.
Methods inherited from Service
#handle_error, #headers, #initialize, #perform, #save_error_details, service_is_up?, #with_monitoring_and_error_handling
Methods included from Common::Client::Concerns::Monitoring
#increment, #increment_failure, #increment_total, #with_monitoring
Methods inherited from Common::Client::Base
#config, configuration, #connection, #delete, #get, #perform, #post, #put, #raise_backend_exception, #raise_not_authenticated, #request, #sanitize_headers!, #service_name
Methods included from SentryLogging
#log_exception_to_sentry, #log_message_to_sentry, #non_nil_hash?, #normalize_level, #rails_logger, #set_sentry_metadata
Constructor Details
This class inherits a constructor from EVSS::Service
Instance Method Details
#get_countries ⇒ EVSS::PCIUAddress::CountriesResponse
Creates an object containing an array of country names
19 20 21 22 23 24 |
# File 'lib/evss/reference_data/service.rb', line 19 def get_countries with_monitoring_and_error_handling do raw_response = perform(:get, 'countries') EVSS::PCIUAddress::CountriesResponse.new(raw_response.status, raw_response) end end |
#get_separation_locations ⇒ Object
38 39 40 41 42 43 |
# File 'lib/evss/reference_data/service.rb', line 38 def get_separation_locations with_monitoring_and_error_handling do raw_response = perform(:get, 'intakesites') EVSS::ReferenceData::IntakeSitesResponse.new(raw_response.status, raw_response) end end |
#get_states ⇒ EVSS::PCIUAddress::StatesResponse
Creates an object containing an array of state names
31 32 33 34 35 36 |
# File 'lib/evss/reference_data/service.rb', line 31 def get_states with_monitoring_and_error_handling do raw_response = perform(:get, 'states') EVSS::PCIUAddress::StatesResponse.new(raw_response.status, raw_response) end end |