Class: Yapt::Config
- Inherits:
-
Object
- Object
- Yapt::Config
- Defined in:
- lib/yapt/config.rb
Instance Attribute Summary collapse
-
#project_path ⇒ Object
readonly
Returns the value of attribute project_path.
Instance Method Summary collapse
- #api_token ⇒ Object
-
#initialize(project_path) ⇒ Config
constructor
A new instance of Config.
- #project_id ⇒ Object
Constructor Details
#initialize(project_path) ⇒ Config
Returns a new instance of Config.
6 7 8 |
# File 'lib/yapt/config.rb', line 6 def initialize(project_path) @project_path = project_path end |
Instance Attribute Details
#project_path ⇒ Object (readonly)
Returns the value of attribute project_path.
5 6 7 |
# File 'lib/yapt/config.rb', line 5 def project_path @project_path end |
Instance Method Details
#api_token ⇒ Object
14 15 16 |
# File 'lib/yapt/config.rb', line 14 def api_token config.fetch('api_token') end |
#project_id ⇒ Object
10 11 12 |
# File 'lib/yapt/config.rb', line 10 def project_id config.fetch('project_id') end |