Class: Hab::Config
- Inherits:
-
Object
- Object
- Hab::Config
- Defined in:
- lib/hab/config.rb
Instance Method Summary collapse
Instance Method Details
#api_token ⇒ Object
13 14 15 |
# File 'lib/hab/config.rb', line 13 def api_token config['api_token'] end |
#config ⇒ Object
5 6 7 |
# File 'lib/hab/config.rb', line 5 def config @config ||= YAML.load_file "#{Dir.home}/.habitica" end |
#user_id ⇒ Object
9 10 11 |
# File 'lib/hab/config.rb', line 9 def user_id config['user_id'] end |