Class: Ecfr::OfrProfileService::Base
- Defined in:
- lib/ecfr/ofr_profile_service/base.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Base
Base::SUPPORTED_ARRAY_ACCESSORS
Instance Attribute Summary
Attributes inherited from Base
#metadata, #request_data, #response_status, #results
Class Method Summary collapse
- .base_url ⇒ Object
- .service_name ⇒ Object
-
.service_path ⇒ Object
path is relative because we expect the ofr profile api to be mounted at a subpath and an absolute url here will cause the path in the config to be lost.
Methods inherited from Base
basic_auth_client_options, #each, #initialize, metadata, metadata_key, result_key
Methods included from Extensible
Methods included from AttributeMethodDefinition
Methods inherited from Client
build, cache_key, client, client_pool, delete, execute, get, handle_response, perform, post, purge
Methods included from ParallelClient
Constructor Details
This class inherits a constructor from Ecfr::Base
Class Method Details
.base_url ⇒ Object
6 7 8 |
# File 'lib/ecfr/ofr_profile_service/base.rb', line 6 def self.base_url Ecfr.config.ofr_profile_service_url || Ecfr.config.ofr_profile_service_base_url end |
.service_name ⇒ Object
17 18 19 |
# File 'lib/ecfr/ofr_profile_service/base.rb', line 17 def self.service_name "OFR Profile" end |
.service_path ⇒ Object
path is relative because we expect the ofr profile api to be mounted at a subpath and an absolute url here will cause the path in the config to be lost
13 14 15 |
# File 'lib/ecfr/ofr_profile_service/base.rb', line 13 def self.service_path Ecfr.config.ofr_profile_service_path || "api/profile" end |