Class: Lhj::TBConfig
- Inherits:
-
Object
- Object
- Lhj::TBConfig
- Defined in:
- lib/lhj/helper/tb_config.rb
Overview
tb config
Constant Summary collapse
- CONFIG_NAME =
'tb_config.yml'
Class Method Summary collapse
- .config ⇒ Object
- .config_file ⇒ Object
- .projectId ⇒ Object
- .tb_app_id ⇒ Object
- .tb_app_key ⇒ Object
- .tb_tenant_id ⇒ Object
Class Method Details
.config ⇒ Object
15 16 17 |
# File 'lib/lhj/helper/tb_config.rb', line 15 def self.config @yaml ||= YAML.load_file(config_file) end |
.config_file ⇒ Object
11 12 13 |
# File 'lib/lhj/helper/tb_config.rb', line 11 def self.config_file File.join(Lhj::Config.instance.home_dir, CONFIG_NAME) end |
.projectId ⇒ Object
31 32 33 |
# File 'lib/lhj/helper/tb_config.rb', line 31 def self.projectId config['projectId'] end |
.tb_app_id ⇒ Object
19 20 21 |
# File 'lib/lhj/helper/tb_config.rb', line 19 def self.tb_app_id config['tb_app_id'] end |
.tb_app_key ⇒ Object
23 24 25 |
# File 'lib/lhj/helper/tb_config.rb', line 23 def self.tb_app_key config['tb_app_key'] end |
.tb_tenant_id ⇒ Object
27 28 29 |
# File 'lib/lhj/helper/tb_config.rb', line 27 def self.tb_tenant_id config['tb_tenant_id'] end |