Class: YapiCheck::Config
- Inherits:
-
Object
- Object
- YapiCheck::Config
- Defined in:
- lib/yapi_check/config.rb
Class Method Summary collapse
-
.yapi_api_prefix ⇒ Object
接口统一前缀, 默认为/api/v1.
-
.yapi_project_domain ⇒ Object
YAPI项目开放API访问域名.
-
.yapi_project_token ⇒ Object
YAPI项目令牌.
Class Method Details
.yapi_api_prefix ⇒ Object
接口统一前缀, 默认为/api/v1
14 15 16 |
# File 'lib/yapi_check/config.rb', line 14 def self.yapi_api_prefix ENV.fetch('YAPI_API_PREFIX', '/api/v1') end |
.yapi_project_domain ⇒ Object
YAPI项目开放API访问域名
9 10 11 |
# File 'lib/yapi_check/config.rb', line 9 def self.yapi_project_domain ENV.fetch('YAPI_PROJECT_DOMAIN', nil) end |
.yapi_project_token ⇒ Object
YAPI项目令牌
4 5 6 |
# File 'lib/yapi_check/config.rb', line 4 def self.yapi_project_token ENV.fetch('YAPI_PROJECT_TOKEN', nil) end |