Class: Boechat::Core::Config::Reader
- Inherits:
-
Object
- Object
- Boechat::Core::Config::Reader
- Defined in:
- lib/boechat/core/config/reader.rb
Overview
Class responsible for read the boechat.yml file, that describes all endpoints to call
Instance Attribute Summary collapse
-
#config_path ⇒ Object
readonly
Returns the value of attribute config_path.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize ⇒ Reader
constructor
A new instance of Reader.
Constructor Details
#initialize ⇒ Reader
Returns a new instance of Reader.
14 15 16 17 |
# File 'lib/boechat/core/config/reader.rb', line 14 def initialize app_root = Pathname.new(File.('../../../../', __dir__)) @config_path = File.join(app_root, 'config', 'boechat.yml') end |
Instance Attribute Details
#config_path ⇒ Object (readonly)
Returns the value of attribute config_path.
12 13 14 |
# File 'lib/boechat/core/config/reader.rb', line 12 def config_path @config_path end |