Class: Lhj::IOSRobotConfig
- Inherits:
-
Object
- Object
- Lhj::IOSRobotConfig
- Defined in:
- lib/lhj/helper/ios_robot_config.rb
Overview
ios Robot Config
Constant Summary collapse
- CONFIG_NAME =
'ios_robot_config.yml'
Class Method Summary collapse
- .agent_id ⇒ Object
- .app_key ⇒ Object
- .app_secret ⇒ Object
- .base_url ⇒ Object
- .clean ⇒ Object
- .config ⇒ Object
- .config_file ⇒ Object
Class Method Details
.agent_id ⇒ Object
22 23 24 |
# File 'lib/lhj/helper/ios_robot_config.rb', line 22 def self.agent_id config['agent_id'] end |
.app_key ⇒ Object
26 27 28 |
# File 'lib/lhj/helper/ios_robot_config.rb', line 26 def self.app_key config['app_key'] end |
.app_secret ⇒ Object
30 31 32 |
# File 'lib/lhj/helper/ios_robot_config.rb', line 30 def self.app_secret config['app_secret'] end |
.base_url ⇒ Object
34 35 36 |
# File 'lib/lhj/helper/ios_robot_config.rb', line 34 def self.base_url config['base_url'] end |
.clean ⇒ Object
18 19 20 |
# File 'lib/lhj/helper/ios_robot_config.rb', line 18 def self.clean @yaml = nil end |
.config ⇒ Object
14 15 16 |
# File 'lib/lhj/helper/ios_robot_config.rb', line 14 def self.config @yaml ||= YAML.load_file(config_file) end |
.config_file ⇒ Object
10 11 12 |
# File 'lib/lhj/helper/ios_robot_config.rb', line 10 def self.config_file File.join(Lhj::Config.instance.home_dir, CONFIG_NAME) end |