Class: Ecfr::VersionerService::Base

Inherits:
Base show all
Defined in:
lib/ecfr/versioner_service/base.rb

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

Methods inherited from Base

basic_auth_client_options, #each, #initialize, metadata, metadata_key, result_key

Methods included from Extensible

#inherited

Methods included from AttributeMethodDefinition

included, #initialize

Methods inherited from Client

build, cache_key, client, client_pool, delete, execute, get, handle_response, perform, post, purge

Methods included from ParallelClient

included

Constructor Details

This class inherits a constructor from Ecfr::Base

Class Method Details

.base_urlObject



14
15
16
# File 'lib/ecfr/versioner_service/base.rb', line 14

def self.base_url
  Ecfr.config.versioner_service_url || Ecfr.config.base_url
end

.service_nameObject



22
23
24
# File 'lib/ecfr/versioner_service/base.rb', line 22

def self.service_name
  "Versioner Service"
end

.service_pathObject



18
19
20
# File 'lib/ecfr/versioner_service/base.rb', line 18

def self.service_path
  Ecfr.config.versioner_service_path || "/api/versioner"
end