Class: YapiCheck::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/yapi_check/config.rb

Class Method Summary collapse

Class Method Details

.yapi_api_prefixObject

接口统一前缀, 默认为/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_domainObject

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_tokenObject

YAPI项目令牌



4
5
6
# File 'lib/yapi_check/config.rb', line 4

def self.yapi_project_token
  ENV.fetch('YAPI_PROJECT_TOKEN', nil)
end