Class: ZohoCrm::BaseService
- Inherits:
-
ActiveCall::Base
- Object
- ActiveCall::Base
- ZohoCrm::BaseService
- Includes:
- ActiveCall::Api
- Defined in:
- lib/zoho_crm/base_service.rb
Direct Known Subclasses
AccessToken::GetService, GrantToken::GetService, Organization::GetService, Record::CreateService, Record::DeleteService, Record::GetService, Record::ListService, Record::SearchService, Record::UpdateService, Record::UpsertService
Constant Summary collapse
- CACHE_KEY =
{ access_token: 'zoho_crm/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/zoho_crm/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/zoho_crm/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 53 54 55 |
# File 'lib/zoho_crm/base_service.rb', line 29 def exception_mapping { validation_error: ZohoCrm::ValidationError, request_error: ZohoCrm::RequestError, client_error: ZohoCrm::ClientError, server_error: ZohoCrm::ServerError, bad_request: ZohoCrm::BadRequestError, unauthorized: ZohoCrm::UnauthorizedError, forbidden: ZohoCrm::ForbiddenError, not_found: ZohoCrm::NotFoundError, method_not_allowed: ZohoCrm::MethodNotAllowedError, not_acceptable: ZohoCrm::NotAcceptableError, proxy_authentication_required: ZohoCrm::ProxyAuthenticationRequiredError, request_timeout: ZohoCrm::RequestTimeoutError, conflict: ZohoCrm::ConflictError, gone: ZohoCrm::GoneError, payload_too_large: ZohoCrm::PayloadTooLargeError, unsupported_media_type: ZohoCrm::UnsupportedMediaTypeError, unprocessable_entity: ZohoCrm::UnprocessableEntityError, too_many_requests: ZohoCrm::TooManyRequestsError, internal_server_error: ZohoCrm::InternalServerError, not_implemented: ZohoCrm::NotImplementedError, bad_gateway: ZohoCrm::BadGatewayError, service_unavailable: ZohoCrm::ServiceUnavailableError, gateway_timeout: ZohoCrm::GatewayTimeoutError }.freeze end |