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