Class: DocFox::BaseService
- Inherits:
-
ActiveCall::Base
- Object
- ActiveCall::Base
- DocFox::BaseService
- Includes:
- ActiveCall::Api
- Defined in:
- lib/doc_fox/base_service.rb
Direct Known Subclasses
AccessToken::GetService, Authentication::GetService, DataRequirement::GetService, DataRequirement::ListService, Document::DownloadService, Document::GetService, Document::ListService, Document::UploadService, DocumentToken::CreateService, DocumentToken::GetService, DocumentToken::ListService, EvidenceSubmission::ApproveService, EvidenceSubmission::GetService, EvidenceSubmission::ListService, EvidenceSubmission::RejectService, EvidenceSubmission::ReplaceService, EvidenceSubmission::UpdateService, KycApplication::ApproveService, KycApplication::ArchiveService, KycApplication::CreateService, KycApplication::DeleteService, KycApplication::GetService, KycApplication::ListService, KycApplication::TransferService, KycApplication::UnapproveService, KycApplication::UnarchiveService, KycEntityTemplate::GetService, KycEntityTemplate::ListService, Profile::GetService, Profile::ListService, StatusSummary::GetService, User::GetService, User::ListService
Constant Summary collapse
- CACHE_KEY =
{ access_token: 'doc_fox/base_service/access_token' }.freeze
Instance Attribute Summary collapse
-
#access_token ⇒ Object
readonly
Returns the value of attribute access_token.
-
#facade ⇒ Object
readonly
Returns the value of attribute facade.
Class Method Summary collapse
Instance Attribute Details
#access_token ⇒ Object (readonly)
Returns the value of attribute access_token.
18 19 20 |
# File 'lib/doc_fox/base_service.rb', line 18 def access_token @access_token end |
#facade ⇒ Object (readonly)
Returns the value of attribute facade.
18 19 20 |
# File 'lib/doc_fox/base_service.rb', line 18 def facade @facade end |
Class Method Details
.exception_mapping ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/doc_fox/base_service.rb', line 29 def exception_mapping { validation_error: DocFox::ValidationError, request_error: DocFox::RequestError, client_error: DocFox::ClientError, server_error: DocFox::ServerError, bad_request: DocFox::BadRequestError, unauthorized: DocFox::UnauthorizedError, forbidden: DocFox::ForbiddenError, not_found: DocFox::NotFoundError, not_acceptable: DocFox::NotAcceptableError, proxy_authentication_required: DocFox::ProxyAuthenticationRequiredError, request_timeout: DocFox::RequestTimeoutError, conflict: DocFox::ConflictError, gone: DocFox::GoneError, unprocessable_entity: DocFox::UnprocessableEntityError, too_many_requests: DocFox::TooManyRequestsError, internal_server_error: DocFox::InternalServerError, not_implemented: DocFox::NotImplementedError, bad_gateway: DocFox::BadGatewayError, service_unavailable: DocFox::ServiceUnavailableError, gateway_timeout: DocFox::GatewayTimeoutError }.freeze end |