UNPKG

@calf/dotypay

Version:

Dotypay module of Calf framework.

31 lines (30 loc) 794 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BaseService = void 0; /** * Base service */ var BaseService = /** @class */ (function () { /** * Constructor * @param config */ function BaseService(config) { // Assign config this.config = config; } Object.defineProperty(BaseService.prototype, "host", { /** * Host * @description Target host for the service */ get: function () { // Return host return this.config.Protocol + "://" + this.config.IP + ":" + this.config.Port; }, enumerable: false, configurable: true }); return BaseService; }()); exports.BaseService = BaseService;